befor64 Module

module~~befor64~~UsesGraph module~befor64 befor64 penf penf penf->module~befor64 module~befor64_pack_data_m befor64_pack_data_m penf->module~befor64_pack_data_m module~befor64_pack_data_m->module~befor64
Help

BeFoR64, Base64 encoding/decoding library for FoRtran poor people.

Used By

module~~befor64~~UsedByGraph module~befor64 befor64 program~volatile_doctest~62 volatile_doctest module~befor64->program~volatile_doctest~62 program~volatile_doctest~19 volatile_doctest module~befor64->program~volatile_doctest~19 program~volatile_doctest~4 volatile_doctest module~befor64->program~volatile_doctest~4 program~volatile_doctest~44 volatile_doctest module~befor64->program~volatile_doctest~44 program~volatile_doctest~52 volatile_doctest module~befor64->program~volatile_doctest~52 program~volatile_doctest~20 volatile_doctest module~befor64->program~volatile_doctest~20 program~volatile_doctest~55 volatile_doctest module~befor64->program~volatile_doctest~55 program~volatile_doctest~5 volatile_doctest module~befor64->program~volatile_doctest~5 program~volatile_doctest~39 volatile_doctest module~befor64->program~volatile_doctest~39 program~volatile_doctest~21 volatile_doctest module~befor64->program~volatile_doctest~21 program~volatile_doctest~35 volatile_doctest module~befor64->program~volatile_doctest~35 program~volatile_doctest~6 volatile_doctest module~befor64->program~volatile_doctest~6 program~volatile_doctest~43 volatile_doctest module~befor64->program~volatile_doctest~43 program~volatile_doctest~51 volatile_doctest module~befor64->program~volatile_doctest~51 program~volatile_doctest~22 volatile_doctest module~befor64->program~volatile_doctest~22 program~volatile_doctest~54 volatile_doctest module~befor64->program~volatile_doctest~54 program~volatile_doctest~60 volatile_doctest module~befor64->program~volatile_doctest~60 program~volatile_doctest~47 volatile_doctest module~befor64->program~volatile_doctest~47 program~volatile_doctest~7 volatile_doctest module~befor64->program~volatile_doctest~7 program~volatile_doctest~27 volatile_doctest module~befor64->program~volatile_doctest~27 program~volatile_doctest~23 volatile_doctest module~befor64->program~volatile_doctest~23 program~volatile_doctest~34 volatile_doctest module~befor64->program~volatile_doctest~34 program~volatile_doctest~8 volatile_doctest module~befor64->program~volatile_doctest~8 program~volatile_doctest~42 volatile_doctest module~befor64->program~volatile_doctest~42 program~volatile_doctest~2 volatile_doctest module~befor64->program~volatile_doctest~2 program~volatile_doctest~50 volatile_doctest module~befor64->program~volatile_doctest~50 program~volatile_doctest~24 volatile_doctest module~befor64->program~volatile_doctest~24 program~volatile_doctest~58 volatile_doctest module~befor64->program~volatile_doctest~58 program~volatile_doctest~9 volatile_doctest module~befor64->program~volatile_doctest~9 program~volatile_doctest~30 volatile_doctest module~befor64->program~volatile_doctest~30 program~volatile_doctest~25 volatile_doctest module~befor64->program~volatile_doctest~25 program~volatile_doctest~67 volatile_doctest module~befor64->program~volatile_doctest~67 program~volatile_doctest~10 volatile_doctest module~befor64->program~volatile_doctest~10 program~volatile_doctest~66 volatile_doctest module~befor64->program~volatile_doctest~66 program~volatile_doctest~57 volatile_doctest module~befor64->program~volatile_doctest~57 program~volatile_doctest~65 volatile_doctest module~befor64->program~volatile_doctest~65 program~volatile_doctest~11 volatile_doctest module~befor64->program~volatile_doctest~11 program~volatile_doctest~40 volatile_doctest module~befor64->program~volatile_doctest~40 program~volatile_doctest~12 volatile_doctest module~befor64->program~volatile_doctest~12 program~volatile_doctest~48 volatile_doctest module~befor64->program~volatile_doctest~48 program~volatile_doctest~56 volatile_doctest module~befor64->program~volatile_doctest~56 program~volatile_doctest~64 volatile_doctest module~befor64->program~volatile_doctest~64 program~volatile_doctest~13 volatile_doctest module~befor64->program~volatile_doctest~13 program~volatile_doctest~28 volatile_doctest module~befor64->program~volatile_doctest~28 program~volatile_doctest~29 volatile_doctest module~befor64->program~volatile_doctest~29 program~volatile_doctest~3 volatile_doctest module~befor64->program~volatile_doctest~3 program~volatile_doctest~14 volatile_doctest module~befor64->program~volatile_doctest~14 program~volatile_doctest~63 volatile_doctest module~befor64->program~volatile_doctest~63 program~volatile_doctest volatile_doctest module~befor64->program~volatile_doctest program~volatile_doctest~38 volatile_doctest module~befor64->program~volatile_doctest~38 program~volatile_doctest~15 volatile_doctest module~befor64->program~volatile_doctest~15 program~volatile_doctest~31 volatile_doctest module~befor64->program~volatile_doctest~31 program~volatile_doctest~46 volatile_doctest module~befor64->program~volatile_doctest~46 program~volatile_doctest~16 volatile_doctest module~befor64->program~volatile_doctest~16 program~volatile_doctest~59 volatile_doctest module~befor64->program~volatile_doctest~59 program~volatile_doctest~32 volatile_doctest module~befor64->program~volatile_doctest~32 program~volatile_doctest~26 volatile_doctest module~befor64->program~volatile_doctest~26 program~volatile_doctest~17 volatile_doctest module~befor64->program~volatile_doctest~17 program~volatile_doctest~41 volatile_doctest module~befor64->program~volatile_doctest~41 program~volatile_doctest~37 volatile_doctest module~befor64->program~volatile_doctest~37 program~volatile_doctest~33 volatile_doctest module~befor64->program~volatile_doctest~33 program~volatile_doctest~45 volatile_doctest module~befor64->program~volatile_doctest~45 program~volatile_doctest~53 volatile_doctest module~befor64->program~volatile_doctest~53 program~volatile_doctest~18 volatile_doctest module~befor64->program~volatile_doctest~18 program~volatile_doctest~61 volatile_doctest module~befor64->program~volatile_doctest~61 program~volatile_doctest~49 volatile_doctest module~befor64->program~volatile_doctest~49 program~volatile_doctest~36 volatile_doctest module~befor64->program~volatile_doctest~36
Help


Variables

TypeVisibility AttributesNameInitial
character(len=64), private :: base64 ="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"

Base64 alphabet.

logical, public :: is_b64_initialized =.false.

Flag for checking the initialization of the library.


Interfaces

public interface b64_decode

Decode numbers (integer and real) from base64.

  • private elemental subroutine b64_decode_R8(code, n)

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

    Arguments

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

    Encoded scalar.

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

    Number to be decoded.

  • private pure subroutine b64_decode_R8_a(code, n)

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

    Arguments

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

    Encoded array.

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

    Array of numbers to be decoded.

  • private elemental subroutine b64_decode_R4(code, n)

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

    Arguments

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

    Encoded scalar.

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

    Number to be decoded.

  • private pure subroutine b64_decode_R4_a(code, n)

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

    Arguments

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

    Encoded array.

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

    Array of numbers to be decoded.

  • private elemental subroutine b64_decode_I8(code, n)

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

    Arguments

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

    Encoded scalar.

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

    Number to be decoded.

  • private pure subroutine b64_decode_I8_a(code, n)

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

    Arguments

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

    Encoded array.

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

    Array of numbers to be decoded.

  • private elemental subroutine b64_decode_I4(code, n)

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

    Arguments

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

    Encoded scalar.

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

    Number to be decoded.

  • private pure subroutine b64_decode_I4_a(code, n)

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

    Arguments

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

    Encoded array.

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

    Array of numbers to be decoded.

  • private elemental subroutine b64_decode_I2(code, n)

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

    Arguments

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

    Encoded scalar.

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

    Number to be decoded.

  • private pure subroutine b64_decode_I2_a(code, n)

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

    Arguments

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

    Encoded array.

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

    Array of numbers to be decoded.

  • private elemental subroutine b64_decode_I1(code, n)

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

    Arguments

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

    Encoded scalar.

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

    Number to be decoded.

  • private pure subroutine b64_decode_I1_a(code, n)

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

    Arguments

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

    Encoded array.

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

    Array of numbers to be decoded.

  • private elemental subroutine b64_decode_string(code, s)

    Decode a base64 code into a scalar string.

    Arguments

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

    Encoded scalar.

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

    String to be decoded.

  • private pure subroutine b64_decode_string_a(code, s)

    Decode a base64 code into an array of strings.

    Arguments

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

    Encoded scalar.

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

    String to be decoded.

private interface b64_decode_up

Decode unlimited polymorphic variable from base64.

  • private interface b64_decode_up()

    Decode unlimited polymorphic variable from base64.

    Arguments

    None
  • private subroutine b64_decode_up_a(code, up)

    Decode an unlimited polymorphic array from base64.

    Arguments

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

    Encoded array.

    class(*), intent(out) :: up(1:)

    Unlimited polymorphic variable to be decoded.

public interface b64_encode

Encode numbers (integer and real) to base64.

  • private pure subroutine b64_encode_R8(n, code)

    Encode scalar number to base64 (R8P).

    Arguments

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

    Number to be encoded.

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

    Encoded scalar.

  • private pure subroutine b64_encode_R8_a(n, code)

    Encode array numbers to base64 (R8P).

    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.

  • private pure subroutine b64_encode_R4(n, code)

    Encode scalar number to base64 (R4P).

    Arguments

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

    Number to be encoded.

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

    Encoded scalar.

  • private pure subroutine b64_encode_R4_a(n, code)

    Encode array numbers to base64 (R4P).

    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.

  • private pure subroutine b64_encode_I8(n, code)

    Encode scalar number to base64 (I8P).

    Arguments

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

    Number to be encoded.

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

    Encoded scalar.

  • private pure subroutine b64_encode_I8_a(n, code)

    Encode array numbers to base64 (I8P).

    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.

  • private pure subroutine b64_encode_I4(n, code)

    Encode scalar number to base64 (I4P).

    Arguments

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

    Number to be encoded.

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

    Encoded scalar.

  • private pure subroutine b64_encode_I4_a(n, code)

    Encode array numbers to base64 (I4P).

    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.

  • private pure subroutine b64_encode_I2(n, code)

    Encode scalar number to base64 (I2P).

    Arguments

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

    Number to be encoded.

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

    Encoded scalar.

  • private pure subroutine b64_encode_I2_a(n, code)

    Encode array numbers to base64 (I2P).

    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.

  • private pure subroutine b64_encode_I1(n, code)

    Encode scalar number to base64 (I1P).

    Arguments

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

    Number to be encoded.

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

    Encoded scalar.

  • private pure subroutine b64_encode_I1_a(n, code)

    Encode array numbers to base64 (I1P).

    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.

  • private pure subroutine b64_encode_string(s, code)

    Encode scalar string to base64.

    Arguments

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

    String to be encoded.

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

    Encoded scalar.

  • private pure subroutine b64_encode_string_a(s, code)

    Encode array string to base64.

    Arguments

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

    String to be encoded.

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

    Encoded scalar.

private interface b64_encode_up

Encode unlimited polymorphic variable to base64.

  • 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.


Subroutines

private elemental subroutine b64_decode_I1(code, n)

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

Arguments

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

Encoded scalar.

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

Number to be decoded.

private pure subroutine b64_decode_I1_a(code, n)

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

Arguments

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

Encoded array.

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

Array of numbers to be decoded.

private elemental subroutine b64_decode_I2(code, n)

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

Arguments

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

Encoded scalar.

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

Number to be decoded.

private pure subroutine b64_decode_I2_a(code, n)

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

Arguments

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

Encoded array.

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

Array of numbers to be decoded.

private elemental subroutine b64_decode_I4(code, n)

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

Arguments

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

Encoded scalar.

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

Number to be decoded.

private pure subroutine b64_decode_I4_a(code, n)

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

Arguments

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

Encoded array.

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

Array of numbers to be decoded.

private elemental subroutine b64_decode_I8(code, n)

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

Arguments

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

Encoded scalar.

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

Number to be decoded.

private pure subroutine b64_decode_I8_a(code, n)

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

Arguments

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

Encoded array.

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

Array of numbers to be decoded.

private elemental subroutine b64_decode_R16(code, n)

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

Arguments

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

Encoded scalar.

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

Number to be decoded.

private pure subroutine b64_decode_R16_a(code, n)

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

Arguments

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

Encoded array.

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

Array of numbers to be decoded.

private elemental subroutine b64_decode_R4(code, n)

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

Arguments

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

Encoded scalar.

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

Number to be decoded.

private pure subroutine b64_decode_R4_a(code, n)

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

Arguments

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

Encoded array.

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

Array of numbers to be decoded.

private elemental subroutine b64_decode_R8(code, n)

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

Arguments

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

Encoded scalar.

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

Number to be decoded.

private pure subroutine b64_decode_R8_a(code, n)

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

Arguments

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

Encoded array.

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

Array of numbers to be decoded.

private elemental subroutine b64_decode_string(code, s)

Decode a base64 code into a scalar string.

Arguments

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

Encoded scalar.

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

String to be decoded.

private pure subroutine b64_decode_string_a(code, s)

Decode a base64 code into an array of strings.

Arguments

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

Encoded scalar.

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

String to be decoded.

public subroutine b64_decode_up(code, up)

Decode an unlimited polymorphic scalar from base64.

Arguments

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

Encoded scalar.

class(*), intent(out) :: up

Unlimited polymorphic variable to be decoded.

private subroutine b64_decode_up_a(code, up)

Decode an unlimited polymorphic array from base64.

Arguments

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

Encoded array.

class(*), intent(out) :: up(1:)

Unlimited polymorphic variable to be decoded.

private pure subroutine b64_encode_I1(n, code)

Encode scalar number to base64 (I1P).

Arguments

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

Number to be encoded.

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

Encoded scalar.

private pure subroutine b64_encode_I1_a(n, code)

Encode array numbers to base64 (I1P).

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.

private pure subroutine b64_encode_I2(n, code)

Encode scalar number to base64 (I2P).

Arguments

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

Number to be encoded.

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

Encoded scalar.

private pure subroutine b64_encode_I2_a(n, code)

Encode array numbers to base64 (I2P).

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.

private pure subroutine b64_encode_I4(n, code)

Encode scalar number to base64 (I4P).

Arguments

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

Number to be encoded.

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

Encoded scalar.

private pure subroutine b64_encode_I4_a(n, code)

Encode array numbers to base64 (I4P).

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.

private pure subroutine b64_encode_I8(n, code)

Encode scalar number to base64 (I8P).

Arguments

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

Number to be encoded.

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

Encoded scalar.

private pure subroutine b64_encode_I8_a(n, code)

Encode array numbers to base64 (I8P).

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.

private pure subroutine b64_encode_R16(n, code)

Encode scalar number to base64 (R16P).

Arguments

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

Number to be encoded.

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

Encoded scalar.

private pure subroutine b64_encode_R16_a(n, code)

Encode array numbers to base64 (R16P).

Arguments

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

Array of numbers to be encoded.

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

Encoded array.

private pure subroutine b64_encode_R4(n, code)

Encode scalar number to base64 (R4P).

Arguments

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

Number to be encoded.

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

Encoded scalar.

private pure subroutine b64_encode_R4_a(n, code)

Encode array numbers to base64 (R4P).

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.

private pure subroutine b64_encode_R8(n, code)

Encode scalar number to base64 (R8P).

Arguments

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

Number to be encoded.

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

Encoded scalar.

private pure subroutine b64_encode_R8_a(n, code)

Encode array numbers to base64 (R8P).

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.

private pure subroutine b64_encode_string(s, code)

Encode scalar string to base64.

Arguments

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

String to be encoded.

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

Encoded scalar.

private pure subroutine b64_encode_string_a(s, code)

Encode array string to base64.

Arguments

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

String to be encoded.

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

Encoded scalar.

public subroutine b64_encode_up(up, code)

Encode an unlimited polymorphic scalar to base64.

Arguments

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

Unlimited polymorphic variable to be encoded.

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

Encoded scalar.

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.

public subroutine b64_init()

Initialize the BeFoR64 library.

Arguments

None

private pure subroutine decode_bits(code, bits)

Decode a base64 string into a sequence of bits stream.

Arguments

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

Characters code.

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

Bits decoded.

private pure subroutine encode_bits(bits, padd, code)

Encode a bits stream (must be multiple of 24 bits) into base64 charcaters code (of length multiple of 4).

Arguments

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

Bits to be encoded.

integer(kind=I4P), intent(in) :: padd

Number of padding characters ('=').

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

Characters code.