encode_float32_base64 Subroutine

public subroutine encode_float32_base64(values, n, output)

Encode float32 array as base64 string (fixed-length output)

Arguments

Type IntentOptional Attributes Name
real(kind=real32), intent(in) :: values(:)
integer, intent(in) :: n
character(len=256), intent(out) :: output

Source Code

  subroutine encode_float32_base64(values, n, output)
    !! Encode float32 array as base64 string (fixed-length output)
    use iso_fortran_env, only: int8
    implicit none
    real(real32), intent(in) :: values(:)
    integer, intent(in) :: n
    character(256), intent(out) :: output

    character(:), allocatable :: result
    call encode_float32_base64_alloc(values, n, result)
    output = result

  end subroutine encode_float32_base64