This module provides the methods for base64Encoding.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public, | parameter | :: | EncoderLen | = | 4 | |
integer, | public, | parameter | :: | EncoderBlockLen | = | 3 |
Convert one block of input (3 Bytes) into its base64 representation (4 Bytes).
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(c_ptr), | value | :: | input |
input character stream in ascii |
||
type(c_ptr), | value | :: | output |
output character stream in base64 |
||
integer(kind=c_int), | intent(in), | value | :: | iplen |
length of the input stream |
|
integer(kind=c_int), | value | :: | oplen |
length of the output stream |
Result, indicating the status of encode
Interface to convert ascii to binary base64 encoder
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(c_ptr), | value | :: | input |
input character stream in ascii |
||
type(c_ptr), | value | :: | output |
output character stream in base64 |
||
integer(kind=c_int), | intent(in), | value | :: | iplen |
length of the input stream |
|
integer(kind=c_int), | value | :: | ind |
current length |
||
integer(kind=c_int), | value | :: | ipindex |
current length |
Result, indicating the status of encode
Interface to convert ascii to binary base64 encoder
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(c_ptr), | value | :: | input |
input character stream in ascii |
||
type(c_ptr), | value | :: | output |
output character stream in base64 |
||
integer(kind=c_int), | intent(in), | value | :: | iplen |
length of the input stream |
|
integer(kind=c_int), | value | :: | oplen |
length of the output stream |
||
integer(kind=c_int), | value | :: | ipindex |
current length |
Result, indicating the status of encode
this routine encodes data of type real32 to base64 format
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=c_float), | intent(in), | target | :: | indata(iplen) |
data to be encoded |
|
integer, | intent(in) | :: | iplen |
size of data to be encoded |
||
integer, | intent(in) | :: | outfile |
output file unit |
this routine encodes data of type real64 to base64 format
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=c_double), | intent(in), | target | :: | indata(iplen) |
data to be encoded |
|
integer, | intent(in) | :: | iplen |
size of data to be encoded |
||
integer, | intent(in) | :: | outfile |
output file unit |
this routine encodes data of type char to base64 format
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(kind=c_char, len=1), | intent(in), | target | :: | indata(iplen) |
data to be encoded |
|
integer, | intent(in) | :: | iplen |
size of data to be encoded |
||
integer, | intent(in) | :: | outfile |
output file unit |
this routine encodes data of type int8 to base64 format
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=c_int_least8_t), | intent(in), | target | :: | indata(iplen) |
data to be encoded |
|
integer, | intent(in) | :: | iplen |
size of data to be encoded |
||
integer, | intent(in) | :: | outfile |
output file unit |
this routine encodes data of type int32 to base64 format
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=c_int), | intent(in), | target | :: | indata(iplen) |
data to be encoded |
|
integer, | intent(in) | :: | iplen |
size of data to be encoded |
||
integer, | intent(in) | :: | outfile |
output file unit |
this routine encodes data of type int64 to base64 format
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=c_int_least64_t), | intent(in), | target | :: | indata(iplen) |
data to be encoded |
|
integer, | intent(in) | :: | iplen |
size of data to be encoded |
||
integer, | intent(in) | :: | outfile |
output file unit |
this routine encodes a single variable of type real32 into base64 format
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=c_float), | intent(in), | target | :: | indata |
data to be encoded |
|
integer, | intent(in) | :: | outfile |
output file unit |
this routine encodes a single variable of type real64 into base64 format
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=c_double), | intent(in), | target | :: | indata |
data to be encoded |
|
integer, | intent(in) | :: | outfile |
output file unit |
this routine encodes a single variable of type char into base64 format
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(kind=c_char, len=1), | intent(in), | target | :: | indata |
data to be encoded |
|
integer, | intent(in) | :: | outfile |
output file unit |
this routine encodes a single variable of type int8 into base64 format
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=c_int_least8_t), | intent(in), | target | :: | indata |
data to be encoded |
|
integer, | intent(in) | :: | outfile |
output file unit |
this routine encodes a single variable of type int32 into base64 format
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=c_int), | intent(in), | target | :: | indata |
data to be encoded |
|
integer, | intent(in) | :: | outfile |
output file unit |
this routine encodes a single variable of type int64 into base64 format
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=c_int_least64_t), | intent(in), | target | :: | indata |
data to be encoded |
|
integer, | intent(in) | :: | outfile |
output file unit |
this routine encodes data of type real64 to base64 format
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=c_double), | intent(in), | target | :: | indata(iplen) |
data to be encoded |
|
integer, | intent(in) | :: | iplen |
size of data to be encoded |
||
integer, | intent(in) | :: | outfile |
output file unit |
this routine encodes a single variable of type real64 into base64 format
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=c_double), | intent(in), | target | :: | indata |
data to be encoded |
|
integer, | intent(in) | :: | outfile |
output file unit |
this routine encodes data of type real32 to base64 format
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=c_float), | intent(in), | target | :: | indata(iplen) |
data to be encoded |
|
integer, | intent(in) | :: | iplen |
size of data to be encoded |
||
integer, | intent(in) | :: | outfile |
output file unit |
this routine encodes a single variable of type real32 into base64 format
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=c_float), | intent(in), | target | :: | indata |
data to be encoded |
|
integer, | intent(in) | :: | outfile |
output file unit |
this routine encodes data of type int8 to base64 format
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=c_int_least8_t), | intent(in), | target | :: | indata(iplen) |
data to be encoded |
|
integer, | intent(in) | :: | iplen |
size of data to be encoded |
||
integer, | intent(in) | :: | outfile |
output file unit |
this routine encodes a single variable of type int8 into base64 format
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=c_int_least8_t), | intent(in), | target | :: | indata |
data to be encoded |
|
integer, | intent(in) | :: | outfile |
output file unit |
this routine encodes data of type int32 to base64 format
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=c_int), | intent(in), | target | :: | indata(iplen) |
data to be encoded |
|
integer, | intent(in) | :: | iplen |
size of data to be encoded |
||
integer, | intent(in) | :: | outfile |
output file unit |
this routine encodes a single variable of type int32 into base64 format
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=c_int), | intent(in), | target | :: | indata |
data to be encoded |
|
integer, | intent(in) | :: | outfile |
output file unit |
this routine encodes data of type int64 to base64 format
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=c_int_least64_t), | intent(in), | target | :: | indata(iplen) |
data to be encoded |
|
integer, | intent(in) | :: | iplen |
size of data to be encoded |
||
integer, | intent(in) | :: | outfile |
output file unit |
this routine encodes a single variable of type int64 into base64 format
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=c_int_least64_t), | intent(in), | target | :: | indata |
data to be encoded |
|
integer, | intent(in) | :: | outfile |
output file unit |
this routine encodes data of type char to base64 format
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(kind=c_char, len=1), | intent(in), | target | :: | indata(iplen) |
data to be encoded |
|
integer, | intent(in) | :: | iplen |
size of data to be encoded |
||
integer, | intent(in) | :: | outfile |
output file unit |
this routine encodes a single variable of type char into base64 format
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(kind=c_char, len=1), | intent(in), | target | :: | indata |
data to be encoded |
|
integer, | intent(in) | :: | outfile |
output file unit |