b64_encode Interface

public interface b64_encode

Encode numbers (integer and real) to base64.

This is an interface for encoding integer and real numbers of any kinds into a base64 string. This interface can encode 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(n=12._R8P,code=code64)

Array encoding

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

Calls

interface~~b64_encode~~CallsGraph interface~b64_encode b64_encode proc~b64_encode_i8 b64_encode_I8 interface~b64_encode->proc~b64_encode_i8 proc~b64_encode_r4_a b64_encode_R4_a interface~b64_encode->proc~b64_encode_r4_a proc~b64_encode_i1_a b64_encode_I1_a interface~b64_encode->proc~b64_encode_i1_a proc~b64_encode_r8_a b64_encode_R8_a interface~b64_encode->proc~b64_encode_r8_a proc~b64_encode_r8 b64_encode_R8 interface~b64_encode->proc~b64_encode_r8 proc~b64_encode_i4 b64_encode_I4 interface~b64_encode->proc~b64_encode_i4 proc~b64_encode_i4_a b64_encode_I4_a interface~b64_encode->proc~b64_encode_i4_a proc~b64_encode_i2_a b64_encode_I2_a interface~b64_encode->proc~b64_encode_i2_a proc~b64_encode_i1 b64_encode_I1 interface~b64_encode->proc~b64_encode_i1 proc~b64_encode_i8_a b64_encode_I8_a interface~b64_encode->proc~b64_encode_i8_a proc~b64_encode_i2 b64_encode_I2 interface~b64_encode->proc~b64_encode_i2 proc~b64_encode_string b64_encode_string interface~b64_encode->proc~b64_encode_string proc~b64_encode_string_a b64_encode_string_a interface~b64_encode->proc~b64_encode_string_a proc~b64_encode_r4 b64_encode_R4 interface~b64_encode->proc~b64_encode_r4 proc~encode_bits encode_bits proc~b64_encode_i8->proc~encode_bits proc~b64_encode_r4_a->proc~encode_bits proc~b64_encode_i1_a->proc~encode_bits proc~b64_encode_r8_a->proc~encode_bits proc~b64_encode_r8->proc~encode_bits proc~b64_encode_i4->proc~encode_bits proc~b64_encode_i4_a->proc~encode_bits proc~b64_encode_i2_a->proc~encode_bits proc~b64_encode_i1->proc~encode_bits proc~b64_encode_i8_a->proc~encode_bits proc~b64_encode_i2->proc~encode_bits proc~b64_encode_string->proc~encode_bits interface~byte_size byte_size proc~b64_encode_string->interface~byte_size proc~b64_encode_string_a->proc~encode_bits proc~b64_encode_string_a->interface~byte_size proc~b64_encode_r4->proc~encode_bits proc~byte_size_i8p byte_size_I8P interface~byte_size->proc~byte_size_i8p proc~byte_size_i4p byte_size_I4P interface~byte_size->proc~byte_size_i4p proc~byte_size_chr byte_size_chr interface~byte_size->proc~byte_size_chr proc~byte_size_r4p byte_size_R4P interface~byte_size->proc~byte_size_r4p proc~byte_size_r8p byte_size_R8P interface~byte_size->proc~byte_size_r8p proc~byte_size_i2p byte_size_I2P interface~byte_size->proc~byte_size_i2p proc~byte_size_i1p byte_size_I1P interface~byte_size->proc~byte_size_i1p
Help

Called By

interface~~b64_encode~~CalledByGraph interface~b64_encode b64_encode proc~autotest autotest proc~autotest->interface~b64_encode proc~encode encode proc~encode->interface~b64_encode
Help

Module Procedures

private pure subroutine b64_encode_R8(n, code)

Arguments

Type IntentOptional AttributesName
real(kind=R8P), intent(in) :: n

Number to be encoded.

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

Encoded scalar.

Description

Encode scalar number to base64 (R8P).

private pure subroutine b64_encode_R8_a(n, code)

Arguments

Type IntentOptional AttributesName
real(kind=R8P), intent(in) :: n(1:)

Array of numbers to be encoded.

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

Encoded array.

Description

Encode array numbers to base64 (R8P).

private pure subroutine b64_encode_R4(n, code)

Arguments

Type IntentOptional AttributesName
real(kind=R4P), intent(in) :: n

Number to be encoded.

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

Encoded scalar.

Description

Encode scalar number to base64 (R4P).

private pure subroutine b64_encode_R4_a(n, code)

Arguments

Type IntentOptional AttributesName
real(kind=R4P), intent(in) :: n(1:)

Array of numbers to be encoded.

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

Encoded array.

Description

Encode array numbers to base64 (R4P).

private pure subroutine b64_encode_I8(n, code)

Arguments

Type IntentOptional AttributesName
integer(kind=I8P), intent(in) :: n

Number to be encoded.

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

Encoded scalar.

Description

Encode scalar number to base64 (I8P).

private pure subroutine b64_encode_I8_a(n, code)

Arguments

Type IntentOptional AttributesName
integer(kind=I8P), intent(in) :: n(1:)

Array of numbers to be encoded.

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

Encoded array.

Description

Encode array numbers to base64 (I8P).

private pure subroutine b64_encode_I4(n, code)

Arguments

Type IntentOptional AttributesName
integer(kind=I4P), intent(in) :: n

Number to be encoded.

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

Encoded scalar.

Description

Encode scalar number to base64 (I4P).

private pure subroutine b64_encode_I4_a(n, code)

Arguments

Type IntentOptional AttributesName
integer(kind=I4P), intent(in) :: n(1:)

Array of numbers to be encoded.

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

Encoded array.

Description

Encode array numbers to base64 (I4P).

private pure subroutine b64_encode_I2(n, code)

Arguments

Type IntentOptional AttributesName
integer(kind=I2P), intent(in) :: n

Number to be encoded.

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

Encoded scalar.

Description

Encode scalar number to base64 (I2P).

private pure subroutine b64_encode_I2_a(n, code)

Arguments

Type IntentOptional AttributesName
integer(kind=I2P), intent(in) :: n(1:)

Array of numbers to be encoded.

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

Encoded array.

Description

Encode array numbers to base64 (I2P).

private pure subroutine b64_encode_I1(n, code)

Arguments

Type IntentOptional AttributesName
integer(kind=I1P), intent(in) :: n

Number to be encoded.

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

Encoded scalar.

Description

Encode scalar number to base64 (I1P).

private pure subroutine b64_encode_I1_a(n, code)

Arguments

Type IntentOptional AttributesName
integer(kind=I1P), intent(in) :: n(1:)

Array of numbers to be encoded.

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

Encoded array.

Description

Encode array numbers to base64 (I1P).

private pure subroutine b64_encode_string(s, code)

Arguments

Type IntentOptional AttributesName
character(len=*), intent(in) :: s

String to be encoded.

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

Encoded scalar.

Description

Encode scalar string to base64.

private pure subroutine b64_encode_string_a(s, code)

Arguments

Type IntentOptional AttributesName
character(len=*), intent(in) :: s(1:)

String to be encoded.

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

Encoded scalar.

Description

Encode array string to base64.