b64_decode_I2_a Subroutine

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

Calls

proc~~b64_decode_i2_a~~CallsGraph proc~b64_decode_i2_a b64_decode_I2_a proc~decode_bits decode_bits proc~b64_decode_i2_a->proc~decode_bits
Help

Called By

proc~~b64_decode_i2_a~~CalledByGraph proc~b64_decode_i2_a b64_decode_I2_a proc~b64_decode_up_a b64_decode_up_a proc~b64_decode_up_a->proc~b64_decode_i2_a interface~b64_decode_up b64_decode_up interface~b64_decode_up->proc~b64_decode_up_a interface~b64_decode_up->proc~b64_decode_up_a interface~b64_decode_up->interface~b64_decode_up interface~b64_decode b64_decode interface~b64_decode->proc~b64_decode_i2_a proc~decode decode proc~decode->interface~b64_decode proc~autotest autotest proc~autotest->interface~b64_decode
Help

Variables

TypeVisibility AttributesNameInitial
integer(kind=I1P), public, allocatable:: nI1P(:)

One byte integer array containing n.


Source Code

  pure subroutine b64_decode_I2_a(code, n)
  !---------------------------------------------------------------------------------------------------------------------------------
  !< Decode a base64 code into an array numbers (I2P).
  !---------------------------------------------------------------------------------------------------------------------------------
  character(*), intent(in)  :: code    !< Encoded array.
  integer(I2P), intent(out) :: n(1:)   !< Array of numbers to be decoded.
  integer(I1P), allocatable :: nI1P(:) !< One byte integer array containing n.
  !---------------------------------------------------------------------------------------------------------------------------------

  !---------------------------------------------------------------------------------------------------------------------------------
  allocate(nI1P(1:size(n,dim=1)*BYI2P)) ; nI1P = 0_I1P
  call decode_bits(code=code,bits=nI1P)
  n = transfer(nI1P,n)
  return
  !---------------------------------------------------------------------------------------------------------------------------------
  endsubroutine b64_decode_I2_a