b64_decode_R16 Subroutine

private elemental subroutine b64_decode_R16(code, n)

Arguments

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

Encoded scalar.

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

Number to be decoded.

Description

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

Calls

proc~~b64_decode_r16~~CallsGraph proc~b64_decode_r16 b64_decode_R16 proc~decode_bits decode_bits proc~b64_decode_r16->proc~decode_bits
Help

Variables

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

One byte integer array containing n.


Source Code

  elemental subroutine b64_decode_R16(code, n)
  !---------------------------------------------------------------------------------------------------------------------------------
  !< Decode a base64 code into a scalar number (R16P).
  !---------------------------------------------------------------------------------------------------------------------------------
  character(*), intent(in)  :: code    !< Encoded scalar.
  real(R16P),   intent(out) :: n       !< Number to be decoded.
  integer(I1P), allocatable :: nI1P(:) !< One byte integer array containing n.
  !---------------------------------------------------------------------------------------------------------------------------------

  !---------------------------------------------------------------------------------------------------------------------------------
  allocate(nI1P(1:BYR16P)) ; nI1P = 0_I1P
  call decode_bits(code=code,bits=nI1P)
  n = transfer(nI1P,n)
  return
  !---------------------------------------------------------------------------------------------------------------------------------
  endsubroutine b64_decode_R16