Encode float32 array as base64 string (fixed-length output)
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real32), | intent(in) | :: | values(:) | |||
| integer, | intent(in) | :: | n | |||
| character(len=256), | intent(out) | :: | output |
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