b64_decode Interface

public interface b64_decode

Decode numbers (integer and real) from base64.

This is an interface for decoding integer and real numbers of any kinds from a base64 string. This interface can decode both scalar and array.

Usage

For a practical example see the autotest procedure.

Scalar decoding

real(R8P):: decoded ! scalar to be decoded
...
call b64_decode(code='AAAAAAAA8D8=',n=decoded)

Array decoding

integer(I8P):: decoded(1:4) ! array to be decoded
...
call b64_decode(code='FwAAAAAAAABEAQAAAAAAABBwhAEAAAAAAgAAAAAAAAA=',n=decoded)

Calls

interface~~b64_decode~~CallsGraph interface~b64_decode b64_decode proc~b64_decode_i2 b64_decode_I2 interface~b64_decode->proc~b64_decode_i2 proc~b64_decode_string b64_decode_string interface~b64_decode->proc~b64_decode_string proc~b64_decode_i1_a b64_decode_I1_a interface~b64_decode->proc~b64_decode_i1_a proc~b64_decode_i4 b64_decode_I4 interface~b64_decode->proc~b64_decode_i4 proc~b64_decode_i4_a b64_decode_I4_a interface~b64_decode->proc~b64_decode_i4_a proc~b64_decode_i8 b64_decode_I8 interface~b64_decode->proc~b64_decode_i8 proc~b64_decode_string_a b64_decode_string_a interface~b64_decode->proc~b64_decode_string_a proc~b64_decode_r4 b64_decode_R4 interface~b64_decode->proc~b64_decode_r4 proc~b64_decode_r4_a b64_decode_R4_a interface~b64_decode->proc~b64_decode_r4_a proc~b64_decode_r8 b64_decode_R8 interface~b64_decode->proc~b64_decode_r8 proc~b64_decode_r8_a b64_decode_R8_a interface~b64_decode->proc~b64_decode_r8_a proc~b64_decode_i8_a b64_decode_I8_a interface~b64_decode->proc~b64_decode_i8_a proc~b64_decode_i2_a b64_decode_I2_a interface~b64_decode->proc~b64_decode_i2_a proc~b64_decode_i1 b64_decode_I1 interface~b64_decode->proc~b64_decode_i1 proc~decode_bits decode_bits proc~b64_decode_i2->proc~decode_bits proc~b64_decode_string->proc~decode_bits interface~byte_size byte_size proc~b64_decode_string->interface~byte_size proc~b64_decode_i1_a->proc~decode_bits proc~b64_decode_i4->proc~decode_bits proc~b64_decode_i4_a->proc~decode_bits proc~b64_decode_i8->proc~decode_bits proc~b64_decode_string_a->proc~decode_bits proc~b64_decode_string_a->interface~byte_size proc~b64_decode_r4->proc~decode_bits proc~b64_decode_r4_a->proc~decode_bits proc~b64_decode_r8->proc~decode_bits proc~b64_decode_r8_a->proc~decode_bits proc~b64_decode_i8_a->proc~decode_bits proc~b64_decode_i2_a->proc~decode_bits proc~b64_decode_i1->proc~decode_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_decode~~CalledByGraph interface~b64_decode b64_decode proc~decode decode proc~decode->interface~b64_decode proc~autotest autotest proc~autotest->interface~b64_decode
Help

Module Procedures

private elemental subroutine b64_decode_R8(code, n)

Arguments

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

Encoded scalar.

real(kind=R8P), intent(out) :: n

Number to be decoded.

Description

Decode a base64 code into a scalar number (R8P).

private pure subroutine b64_decode_R8_a(code, n)

Arguments

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

Encoded array.

real(kind=R8P), intent(out) :: n(1:)

Array of numbers to be decoded.

Description

Decode a base64 code into an array numbers (R8P).

private elemental subroutine b64_decode_R4(code, n)

Arguments

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

Encoded scalar.

real(kind=R4P), intent(out) :: n

Number to be decoded.

Description

Decode a base64 code into a scalar number (R4P).

private pure subroutine b64_decode_R4_a(code, n)

Arguments

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

Encoded array.

real(kind=R4P), intent(out) :: n(1:)

Array of numbers to be decoded.

Description

Decode a base64 code into an array numbers (R4P).

private elemental subroutine b64_decode_I8(code, n)

Arguments

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

Encoded scalar.

integer(kind=I8P), intent(out) :: n

Number to be decoded.

Description

Decode a base64 code into a scalar number (I8P).

private pure subroutine b64_decode_I8_a(code, n)

Arguments

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

Encoded array.

integer(kind=I8P), intent(out) :: n(1:)

Array of numbers to be decoded.

Description

Decode a base64 code into an array numbers (I8P).

private elemental subroutine b64_decode_I4(code, n)

Arguments

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

Encoded scalar.

integer(kind=I4P), intent(out) :: n

Number to be decoded.

Description

Decode a base64 code into a scalar number (I4P).

private pure subroutine b64_decode_I4_a(code, n)

Arguments

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

Encoded array.

integer(kind=I4P), intent(out) :: n(1:)

Array of numbers to be decoded.

Description

Decode a base64 code into an array numbers (I4P).

private elemental subroutine b64_decode_I2(code, n)

Arguments

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

Encoded scalar.

integer(kind=I2P), intent(out) :: n

Number to be decoded.

Description

Decode a base64 code into a scalar number (I2P).

private pure subroutine b64_decode_I2_a(code, n)

Arguments

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

Encoded array.

integer(kind=I2P), intent(out) :: n(1:)

Array of numbers to be decoded.

Description

Decode a base64 code into an array numbers (I2P).

private elemental subroutine b64_decode_I1(code, n)

Arguments

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

Encoded scalar.

integer(kind=I1P), intent(out) :: n

Number to be decoded.

Description

Decode a base64 code into a scalar number (I1P).

private pure subroutine b64_decode_I1_a(code, n)

Arguments

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

Encoded array.

integer(kind=I1P), intent(out) :: n(1:)

Array of numbers to be decoded.

Description

Decode a base64 code into an array numbers (I1P).

private elemental subroutine b64_decode_string(code, s)

Arguments

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

Encoded scalar.

character(len=*), intent(out) :: s

String to be decoded.

Description

Decode a base64 code into a scalar string.

private pure subroutine b64_decode_string_a(code, s)

Arguments

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

Encoded scalar.

character(len=*), intent(out) :: s(1:)

String to be decoded.

Description

Decode a base64 code into an array of strings.