dm_base64_encode Subroutine

public pure subroutine dm_base64_encode(input, output, error)

Encodes given input string in base64.

Based on implementation by cure honey that is compatible to little endian and big endian alike (and quite fast, too!).

The routine returns E_ALLOC in optional argument error if the allocation of output failed.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: input

Input string.

character(len=:), intent(out), allocatable :: output

Base64-encoded output string.

integer, intent(out), optional :: error

Error code.


Called by

proc~~dm_base64_encode~~CalledByGraph proc~dm_base64_encode dm_base64_encode proc~dm_html_data_uri dm_html_data_uri proc~dm_html_data_uri->proc~dm_base64_encode