b64_encode_up Interface

private interface b64_encode_up

Encode unlimited polymorphic variable to base64.

This is an interface for encoding both scalar and array.

Usage

For a practical example see the autotest procedure.

Scalar encoding

character(len=:), allocatable:: code64 ! base64 encoded string
...
call b64_encode_up(up=12._R8P,code=code64)

Array encoding

character(len=:), allocatable:: code64 ! base64 encoded string
...
call b64_encode_up(up=[12_I4P,1_I4P],code=code64)

Calls

interface~~b64_encode_up~~CallsGraph interface~b64_encode_up b64_encode_up interface~b64_encode_up->interface~b64_encode_up proc~b64_encode_up_a b64_encode_up_a interface~b64_encode_up->proc~b64_encode_up_a proc~b64_encode_r4_a b64_encode_R4_a proc~b64_encode_up_a->proc~b64_encode_r4_a proc~b64_encode_i8_a b64_encode_I8_a proc~b64_encode_up_a->proc~b64_encode_i8_a proc~b64_encode_i2_a b64_encode_I2_a proc~b64_encode_up_a->proc~b64_encode_i2_a proc~b64_encode_i1_a b64_encode_I1_a proc~b64_encode_up_a->proc~b64_encode_i1_a proc~b64_encode_i4_a b64_encode_I4_a proc~b64_encode_up_a->proc~b64_encode_i4_a proc~b64_encode_r8_a b64_encode_R8_a proc~b64_encode_up_a->proc~b64_encode_r8_a proc~b64_encode_string_a b64_encode_string_a proc~b64_encode_up_a->proc~b64_encode_string_a proc~encode_bits encode_bits proc~b64_encode_r4_a->proc~encode_bits proc~b64_encode_i8_a->proc~encode_bits proc~b64_encode_i2_a->proc~encode_bits proc~b64_encode_i1_a->proc~encode_bits proc~b64_encode_i4_a->proc~encode_bits proc~b64_encode_r8_a->proc~encode_bits proc~b64_encode_string_a->proc~encode_bits byte_size byte_size proc~b64_encode_string_a->byte_size
Help


Module Procedures

private interface b64_encode_up()

Encode unlimited polymorphic variable to base64.

Arguments

None

private pure subroutine b64_encode_up_a(up, code)

Encode an unlimited polymorphic array to base64.

Arguments

Type IntentOptional AttributesName
class(*), intent(in) :: up(1:)

Unlimited polymorphic variable to be encoded.

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

Encoded array.