b64_decode_I8 Subroutine

private elemental subroutine b64_decode_I8(code, n)

Arguments

TypeIntentOptionalAttributesName
character, intent(in) :: code
integer(kind=I8P), intent(out) :: n

Calls

proc~~b64_decode_i8~3~~CallsGraph proc~b64_decode_i8~3 b64_decode_I8 proc~decode_bits~3 decode_bits proc~b64_decode_i8~3->proc~decode_bits~3

Called by

proc~~b64_decode_i8~3~~CalledByGraph proc~b64_decode_i8~3 b64_decode_I8 proc~b64_decode_up~3 b64_decode_up proc~b64_decode_up~3->proc~b64_decode_i8~3 interface~b64_decode~3 b64_decode interface~b64_decode~3->proc~b64_decode_i8~3

Contents

Source Code


Source Code

   elemental subroutine b64_decode_I8(code, n)
   !< Decode a base64 code into a scalar number (I8P).
   !<
   !<```fortran
   !< use befor64
   !< use penf
   !< integer(I8P) :: scalar_I8
   !< call b64_decode(code='FwAAAAAAAAA=',n=scalar_I8)
   !< print "(L1)", scalar_I8==23_I8P
   !<```
   !=> T <<<
   character(*), intent(in)  :: code    !< Encoded scalar.
   integer(I8P), intent(out) :: n       !< Number to be decoded.
   integer(I1P), allocatable :: nI1P(:) !< One byte integer array containing n.

   allocate(nI1P(1:BYI8P)) ; nI1P = 0_I1P
   call decode_bits(code=code,bits=nI1P)
   n = transfer(nI1P,n)
   endsubroutine b64_decode_I8