b64_decode_I8_a Subroutine

private pure subroutine b64_decode_I8_a(code, n)

Arguments

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

Calls

proc~~b64_decode_i8_a~2~~CallsGraph proc~b64_decode_i8_a~2 b64_decode_I8_a proc~decode_bits~2 decode_bits proc~b64_decode_i8_a~2->proc~decode_bits~2

Called by

proc~~b64_decode_i8_a~2~~CalledByGraph proc~b64_decode_i8_a~2 b64_decode_I8_a proc~b64_decode_up_a~2 b64_decode_up_a proc~b64_decode_up_a~2->proc~b64_decode_i8_a~2 interface~b64_decode~2 b64_decode interface~b64_decode~2->proc~b64_decode_i8_a~2 interface~b64_decode_up~2 b64_decode_up interface~b64_decode_up~2->proc~b64_decode_up_a~2 interface~b64_decode_up~2->proc~b64_decode_up_a~2 interface~b64_decode_up~2->interface~b64_decode_up~2 interface~b64_decode_up~2->interface~b64_decode_up~2

Contents

Source Code


Source Code

   pure subroutine b64_decode_I8_a(code, n)
   !< Decode a base64 code into an array numbers (I8P).
   !<
   !<```fortran
   !< use befor64
   !< use penf
   !< integer(I8P) :: array_I8(1:4)
   !< call b64_decode(code='FwAAAAAAAABEAQAAAAAAABBwhAEAAAAAAgAAAAAAAAA=',n=array_I8)
   !< print "(L1)", str(n=array_I8)==str(n=[23_I8P,324_I8P,25456656_I8P,2_I8P])
   !<```
   !=> T <<<
   character(*), intent(in)  :: code    !< Encoded array.
   integer(I8P), 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)*BYI8P)) ; nI1P = 0_I1P
   call decode_bits(code=code,bits=nI1P)
   n = transfer(nI1P,n)
   endsubroutine b64_decode_I8_a