b64_decode_R4 Subroutine

private elemental subroutine b64_decode_R4(code, n)

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

 use befor64
 use penf
 real(R4P) :: scalar_R4
 call b64_decode(code='AAAAAA==',n=scalar_R4)
 print "(L1)", scalar_R4==0._R4P

Arguments

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

Encoded scalar.

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

Number to be decoded.

Calls

proc~~b64_decode_r4~~CallsGraph proc~b64_decode_r4 b64_decode_R4 proc~decode_bits decode_bits proc~b64_decode_r4->proc~decode_bits
Help

Called By

proc~~b64_decode_r4~~CalledByGraph proc~b64_decode_r4 b64_decode_R4 proc~b64_decode_up b64_decode_up proc~b64_decode_up->proc~b64_decode_r4 interface~b64_decode b64_decode interface~b64_decode->proc~b64_decode_r4 program~volatile_doctest~19 volatile_doctest program~volatile_doctest~19->interface~b64_decode program~volatile_doctest~29 volatile_doctest program~volatile_doctest~29->interface~b64_decode program~volatile_doctest~31 volatile_doctest program~volatile_doctest~31->interface~b64_decode program~volatile_doctest~24 volatile_doctest program~volatile_doctest~24->interface~b64_decode program~volatile_doctest~15 volatile_doctest program~volatile_doctest~15->interface~b64_decode program~volatile_doctest~21 volatile_doctest program~volatile_doctest~21->interface~b64_decode program~volatile_doctest~20 volatile_doctest program~volatile_doctest~20->interface~b64_decode program~volatile_doctest~28 volatile_doctest program~volatile_doctest~28->interface~b64_decode program~volatile_doctest~30 volatile_doctest program~volatile_doctest~30->interface~b64_decode program~volatile_doctest~17 volatile_doctest program~volatile_doctest~17->interface~b64_decode program~volatile_doctest~25 volatile_doctest program~volatile_doctest~25->interface~b64_decode program~volatile_doctest~16 volatile_doctest program~volatile_doctest~16->interface~b64_decode program~volatile_doctest~22 volatile_doctest program~volatile_doctest~22->interface~b64_decode program~volatile_doctest~18 volatile_doctest program~volatile_doctest~18->interface~b64_decode program~volatile_doctest~26 volatile_doctest program~volatile_doctest~26->interface~b64_decode program~volatile_doctest~27 volatile_doctest program~volatile_doctest~27->interface~b64_decode
Help

Source Code


Source Code

   elemental subroutine b64_decode_R4(code, n)
   !< Decode a base64 code into a scalar number (R4P).
   !<
   !<```fortran
   !< use befor64
   !< use penf
   !< real(R4P) :: scalar_R4
   !< call b64_decode(code='AAAAAA==',n=scalar_R4)
   !< print "(L1)", scalar_R4==0._R4P
   !<```
   !=> T <<<
   character(*), intent(in)  :: code    !< Encoded scalar.
   real(R4P),    intent(out) :: n       !< Number to be decoded.
   integer(I1P), allocatable :: nI1P(:) !< One byte integer array containing n.

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