Decode a base64 code into an array numbers (I4P).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | code | Encoded array. |
||
| integer(kind=I4P), | intent(out) | :: | n(1:) | Array of numbers to be decoded. |
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed arrows point from an interface to procedures which implement that interface. This could include the module procedures in a generic interface or the implementation in a submodule of an interface in a parent module.
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed arrows point from an interface to procedures which implement that interface. This could include the module procedures in a generic interface or the implementation in a submodule of an interface in a parent module.
pure subroutine b64_decode_I4_a(code, n)
!---------------------------------------------------------------------------------------------------------------------------------
!< Decode a base64 code into an array numbers (I4P).
!---------------------------------------------------------------------------------------------------------------------------------
character(*), intent(in) :: code !< Encoded array.
integer(I4P), 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)*BYI4P)) ; nI1P = 0_I1P
call decode_bits(code=code,bits=nI1P)
n = transfer(nI1P,n)
return
!---------------------------------------------------------------------------------------------------------------------------------
endsubroutine b64_decode_I4_a