b64_encode_I2 Subroutine

private pure subroutine b64_encode_I2(n, code)

Arguments

TypeIntentOptionalAttributesName
integer(kind=I2P), intent(in) :: n
character(len=:), intent(out), allocatable:: code

Calls

proc~~b64_encode_i2~~CallsGraph proc~b64_encode_i2 b64_encode_I2 proc~encode_bits encode_bits proc~b64_encode_i2->proc~encode_bits

Called by

proc~~b64_encode_i2~~CalledByGraph proc~b64_encode_i2 b64_encode_I2 proc~b64_encode_up b64_encode_up proc~b64_encode_up->proc~b64_encode_i2 interface~b64_encode b64_encode interface~b64_encode->proc~b64_encode_i2 proc~encode_binary_dataarray1_rank1_r4p encode_binary_dataarray1_rank1_R4P proc~encode_binary_dataarray1_rank1_r4p->interface~b64_encode proc~encode_binary_dataarray3_rank3_r8p encode_binary_dataarray3_rank3_R8P proc~encode_binary_dataarray3_rank3_r8p->interface~b64_encode program~volatile_doctest~360 volatile_doctest program~volatile_doctest~360->interface~b64_encode program~volatile_doctest~528 volatile_doctest program~volatile_doctest~528->interface~b64_encode proc~encode_binary_dataarray6_rank1_i1p encode_binary_dataarray6_rank1_I1P proc~encode_binary_dataarray6_rank1_i1p->interface~b64_encode program~volatile_doctest~1085 volatile_doctest program~volatile_doctest~1085->interface~b64_encode program~volatile_doctest~1117 volatile_doctest program~volatile_doctest~1117->interface~b64_encode proc~encode_binary_dataarray1_rank4_i8p encode_binary_dataarray1_rank4_I8P proc~encode_binary_dataarray1_rank4_i8p->interface~b64_encode proc~encode_binary_dataarray1_rank1_i8p encode_binary_dataarray1_rank1_I8P proc~encode_binary_dataarray1_rank1_i8p->interface~b64_encode proc~encode_binary_dataarray3_rank3_r4p encode_binary_dataarray3_rank3_R4P proc~encode_binary_dataarray3_rank3_r4p->interface~b64_encode program~volatile_doctest~361 volatile_doctest program~volatile_doctest~361->interface~b64_encode program~volatile_doctest~529 volatile_doctest program~volatile_doctest~529->interface~b64_encode program~volatile_doctest~907 volatile_doctest program~volatile_doctest~907->interface~b64_encode proc~encode_binary_dataarray1_rank2_i2p encode_binary_dataarray1_rank2_I2P proc~encode_binary_dataarray1_rank2_i2p->interface~b64_encode proc~encode_binary_dataarray6_rank3_r8p encode_binary_dataarray6_rank3_R8P proc~encode_binary_dataarray6_rank3_r8p->interface~b64_encode program~volatile_doctest~918 volatile_doctest program~volatile_doctest~918->interface~b64_encode program~volatile_doctest~1118 volatile_doctest program~volatile_doctest~1118->interface~b64_encode proc~encode_binary_dataarray1_rank4_i4p encode_binary_dataarray1_rank4_I4P proc~encode_binary_dataarray1_rank4_i4p->interface~b64_encode program~volatile_doctest~351 volatile_doctest program~volatile_doctest~351->interface~b64_encode program~volatile_doctest~1097 volatile_doctest program~volatile_doctest~1097->interface~b64_encode proc~encode_binary_dataarray3_rank3_i8p encode_binary_dataarray3_rank3_I8P proc~encode_binary_dataarray3_rank3_i8p->interface~b64_encode program~volatile_doctest~332 volatile_doctest program~volatile_doctest~332->interface~b64_encode program~volatile_doctest~908 volatile_doctest program~volatile_doctest~908->interface~b64_encode program~volatile_doctest~940 volatile_doctest program~volatile_doctest~940->interface~b64_encode proc~encode_binary_dataarray1_rank2_i1p encode_binary_dataarray1_rank2_I1P proc~encode_binary_dataarray1_rank2_i1p->interface~b64_encode proc~encode_binary_dataarray6_rank3_r4p encode_binary_dataarray6_rank3_R4P proc~encode_binary_dataarray6_rank3_r4p->interface~b64_encode program~volatile_doctest~509 volatile_doctest program~volatile_doctest~509->interface~b64_encode program~volatile_doctest~1119 volatile_doctest program~volatile_doctest~1119->interface~b64_encode proc~encode_binary_dataarray1_rank4_i2p encode_binary_dataarray1_rank4_I2P proc~encode_binary_dataarray1_rank4_i2p->interface~b64_encode program~volatile_doctest~352 volatile_doctest program~volatile_doctest~352->interface~b64_encode program~volatile_doctest~520 volatile_doctest program~volatile_doctest~520->interface~b64_encode proc~encode_binary_dataarray3_rank3_i4p encode_binary_dataarray3_rank3_I4P proc~encode_binary_dataarray3_rank3_i4p->interface~b64_encode program~volatile_doctest~333 volatile_doctest program~volatile_doctest~333->interface~b64_encode program~volatile_doctest~941 volatile_doctest program~volatile_doctest~941->interface~b64_encode proc~encode_binary_dataarray1_rank3_r8p encode_binary_dataarray1_rank3_R8P proc~encode_binary_dataarray1_rank3_r8p->interface~b64_encode proc~encode_binary_dataarray6_rank3_i8p encode_binary_dataarray6_rank3_I8P proc~encode_binary_dataarray6_rank3_i8p->interface~b64_encode program~volatile_doctest~343 volatile_doctest program~volatile_doctest~343->interface~b64_encode program~volatile_doctest~510 volatile_doctest program~volatile_doctest~510->interface~b64_encode program~volatile_doctest~542 volatile_doctest program~volatile_doctest~542->interface~b64_encode program~volatile_doctest~920 volatile_doctest program~volatile_doctest~920->interface~b64_encode program~volatile_doctest~1120 volatile_doctest program~volatile_doctest~1120->interface~b64_encode proc~encode_binary_dataarray1_rank4_i1p encode_binary_dataarray1_rank4_I1P proc~encode_binary_dataarray1_rank4_i1p->interface~b64_encode proc~encode_binary_dataarray3_rank3_i2p encode_binary_dataarray3_rank3_I2P proc~encode_binary_dataarray3_rank3_i2p->interface~b64_encode program~volatile_doctest~942 volatile_doctest program~volatile_doctest~942->interface~b64_encode program~volatile_doctest~1110 volatile_doctest program~volatile_doctest~1110->interface~b64_encode proc~encode_binary_dataarray1_rank3_r4p encode_binary_dataarray1_rank3_R4P proc~encode_binary_dataarray1_rank3_r4p->interface~b64_encode proc~encode_binary_dataarray6_rank3_i4p encode_binary_dataarray6_rank3_I4P proc~encode_binary_dataarray6_rank3_i4p->interface~b64_encode program~volatile_doctest~543 volatile_doctest program~volatile_doctest~543->interface~b64_encode program~volatile_doctest~1089 volatile_doctest program~volatile_doctest~1089->interface~b64_encode proc~encode_binary_dataarray1_rank1_i2p encode_binary_dataarray1_rank1_I2P proc~encode_binary_dataarray1_rank1_i2p->interface~b64_encode proc~encode_binary_dataarray3_rank1_r8p encode_binary_dataarray3_rank1_R8P proc~encode_binary_dataarray3_rank1_r8p->interface~b64_encode program~volatile_doctest~522 volatile_doctest program~volatile_doctest~522->interface~b64_encode program~volatile_doctest~1100 volatile_doctest program~volatile_doctest~1100->interface~b64_encode proc~encode_binary_dataarray3_rank3_i1p encode_binary_dataarray3_rank3_I1P proc~encode_binary_dataarray3_rank3_i1p->interface~b64_encode program~volatile_doctest~365 volatile_doctest program~volatile_doctest~365->interface~b64_encode program~volatile_doctest~943 volatile_doctest program~volatile_doctest~943->interface~b64_encode proc~encode_binary_dataarray1_rank3_i8p encode_binary_dataarray1_rank3_I8P proc~encode_binary_dataarray1_rank3_i8p->interface~b64_encode proc~encode_binary_dataarray6_rank3_i2p encode_binary_dataarray6_rank3_I2P proc~encode_binary_dataarray6_rank3_i2p->interface~b64_encode program~volatile_doctest~345 volatile_doctest program~volatile_doctest~345->interface~b64_encode program~volatile_doctest~1090 volatile_doctest program~volatile_doctest~1090->interface~b64_encode program~volatile_doctest~544 volatile_doctest program~volatile_doctest~544->interface~b64_encode proc~encode_binary_dataarray1_rank1_i1p encode_binary_dataarray1_rank1_I1P proc~encode_binary_dataarray1_rank1_i1p->interface~b64_encode proc~encode_binary_dataarray3_rank1_r4p encode_binary_dataarray3_rank1_R4P proc~encode_binary_dataarray3_rank1_r4p->interface~b64_encode program~volatile_doctest~933 volatile_doctest program~volatile_doctest~933->interface~b64_encode proc~encode_binary_dataarray6_rank1_r8p encode_binary_dataarray6_rank1_R8P proc~encode_binary_dataarray6_rank1_r8p->interface~b64_encode program~volatile_doctest~366 volatile_doctest program~volatile_doctest~366->interface~b64_encode program~volatile_doctest~912 volatile_doctest program~volatile_doctest~912->interface~b64_encode program~volatile_doctest~1112 volatile_doctest program~volatile_doctest~1112->interface~b64_encode program~volatile_doctest~923 volatile_doctest program~volatile_doctest~923->interface~b64_encode proc~encode_binary_dataarray1_rank3_i4p encode_binary_dataarray1_rank3_I4P proc~encode_binary_dataarray1_rank3_i4p->interface~b64_encode proc~encode_binary_dataarray6_rank3_i1p encode_binary_dataarray6_rank3_I1P proc~encode_binary_dataarray6_rank3_i1p->interface~b64_encode program~volatile_doctest~545 volatile_doctest program~volatile_doctest~545->interface~b64_encode proc~encode_binary_dataarray1_rank2_r8p encode_binary_dataarray1_rank2_R8P proc~encode_binary_dataarray1_rank2_r8p->interface~b64_encode proc~encode_binary_dataarray3_rank1_i8p encode_binary_dataarray3_rank1_I8P proc~encode_binary_dataarray3_rank1_i8p->interface~b64_encode proc~encode_binary_dataarray6_rank1_r4p encode_binary_dataarray6_rank1_R4P proc~encode_binary_dataarray6_rank1_r4p->interface~b64_encode program~volatile_doctest~367 volatile_doctest program~volatile_doctest~367->interface~b64_encode program~volatile_doctest~535 volatile_doctest program~volatile_doctest~535->interface~b64_encode program~volatile_doctest~913 volatile_doctest program~volatile_doctest~913->interface~b64_encode program~volatile_doctest~1113 volatile_doctest program~volatile_doctest~1113->interface~b64_encode proc~encode_binary_dataarray1_rank1_i4p encode_binary_dataarray1_rank1_I4P proc~encode_binary_dataarray1_rank1_i4p->interface~b64_encode proc~encode_binary_dataarray1_rank3_i2p encode_binary_dataarray1_rank3_I2P proc~encode_binary_dataarray1_rank3_i2p->interface~b64_encode program~volatile_doctest~514 volatile_doctest program~volatile_doctest~514->interface~b64_encode proc~encode_binary_dataarray1_rank2_r4p encode_binary_dataarray1_rank2_R4P proc~encode_binary_dataarray1_rank2_r4p->interface~b64_encode proc~encode_binary_dataarray3_rank1_i4p encode_binary_dataarray3_rank1_I4P proc~encode_binary_dataarray3_rank1_i4p->interface~b64_encode program~volatile_doctest~525 volatile_doctest program~volatile_doctest~525->interface~b64_encode program~volatile_doctest~935 volatile_doctest program~volatile_doctest~935->interface~b64_encode program~volatile_doctest~1103 volatile_doctest program~volatile_doctest~1103->interface~b64_encode proc~encode_binary_dataarray6_rank1_i8p encode_binary_dataarray6_rank1_I8P proc~encode_binary_dataarray6_rank1_i8p->interface~b64_encode program~volatile_doctest~337 volatile_doctest program~volatile_doctest~337->interface~b64_encode program~volatile_doctest~368 volatile_doctest program~volatile_doctest~368->interface~b64_encode proc~encode_binary_dataarray1_rank3_i1p encode_binary_dataarray1_rank3_I1P proc~encode_binary_dataarray1_rank3_i1p->interface~b64_encode program~volatile_doctest~348 volatile_doctest program~volatile_doctest~348->interface~b64_encode program~volatile_doctest~515 volatile_doctest program~volatile_doctest~515->interface~b64_encode proc~encode_binary_dataarray1_rank2_i8p encode_binary_dataarray1_rank2_I8P proc~encode_binary_dataarray1_rank2_i8p->interface~b64_encode proc~encode_binary_dataarray3_rank1_i2p encode_binary_dataarray3_rank1_I2P proc~encode_binary_dataarray3_rank1_i2p->interface~b64_encode proc~encode encode proc~encode->interface~b64_encode program~volatile_doctest~358 volatile_doctest program~volatile_doctest~358->interface~b64_encode program~volatile_doctest~936 volatile_doctest program~volatile_doctest~936->interface~b64_encode program~volatile_doctest~1104 volatile_doctest program~volatile_doctest~1104->interface~b64_encode proc~encode_binary_dataarray6_rank1_i4p encode_binary_dataarray6_rank1_I4P proc~encode_binary_dataarray6_rank1_i4p->interface~b64_encode program~volatile_doctest~338 volatile_doctest program~volatile_doctest~338->interface~b64_encode program~volatile_doctest~537 volatile_doctest program~volatile_doctest~537->interface~b64_encode proc~encode_binary_dataarray1_rank4_r8p encode_binary_dataarray1_rank4_R8P proc~encode_binary_dataarray1_rank4_r8p->interface~b64_encode proc~encode~2 encode proc~encode~2->interface~b64_encode program~volatile_doctest~926 volatile_doctest program~volatile_doctest~926->interface~b64_encode proc~encode_binary_dataarray1_rank1_r8p encode_binary_dataarray1_rank1_R8P proc~encode_binary_dataarray1_rank1_r8p->interface~b64_encode proc~encode_binary_dataarray1_rank2_i4p encode_binary_dataarray1_rank2_I4P proc~encode_binary_dataarray1_rank2_i4p->interface~b64_encode proc~encode_binary_dataarray3_rank1_i1p encode_binary_dataarray3_rank1_I1P proc~encode_binary_dataarray3_rank1_i1p->interface~b64_encode proc~encode_binary_dataarray6_rank1_i2p encode_binary_dataarray6_rank1_I2P proc~encode_binary_dataarray6_rank1_i2p->interface~b64_encode program~volatile_doctest~538 volatile_doctest program~volatile_doctest~538->interface~b64_encode program~volatile_doctest~1084 volatile_doctest program~volatile_doctest~1084->interface~b64_encode proc~encode_binary_dataarray1_rank4_r4p encode_binary_dataarray1_rank4_R4P proc~encode_binary_dataarray1_rank4_r4p->interface~b64_encode program~volatile_doctest~927 volatile_doctest program~volatile_doctest~927->interface~b64_encode program~volatile_doctest~1095 volatile_doctest program~volatile_doctest~1095->interface~b64_encode interface~encode_binary_dataarray encode_binary_dataarray interface~encode_binary_dataarray->proc~encode_binary_dataarray1_rank1_r4p interface~encode_binary_dataarray->proc~encode_binary_dataarray3_rank3_r8p interface~encode_binary_dataarray->proc~encode_binary_dataarray6_rank1_i1p interface~encode_binary_dataarray->proc~encode_binary_dataarray1_rank4_i8p interface~encode_binary_dataarray->proc~encode_binary_dataarray1_rank1_i8p interface~encode_binary_dataarray->proc~encode_binary_dataarray3_rank3_r4p interface~encode_binary_dataarray->proc~encode_binary_dataarray1_rank2_i2p interface~encode_binary_dataarray->proc~encode_binary_dataarray6_rank3_r8p interface~encode_binary_dataarray->proc~encode_binary_dataarray1_rank4_i4p interface~encode_binary_dataarray->proc~encode_binary_dataarray3_rank3_i8p interface~encode_binary_dataarray->proc~encode_binary_dataarray1_rank2_i1p interface~encode_binary_dataarray->proc~encode_binary_dataarray6_rank3_r4p interface~encode_binary_dataarray->proc~encode_binary_dataarray1_rank4_i2p interface~encode_binary_dataarray->proc~encode_binary_dataarray3_rank3_i4p interface~encode_binary_dataarray->proc~encode_binary_dataarray1_rank3_r8p interface~encode_binary_dataarray->proc~encode_binary_dataarray6_rank3_i8p interface~encode_binary_dataarray->proc~encode_binary_dataarray1_rank4_i1p interface~encode_binary_dataarray->proc~encode_binary_dataarray3_rank3_i2p interface~encode_binary_dataarray->proc~encode_binary_dataarray1_rank3_r4p interface~encode_binary_dataarray->proc~encode_binary_dataarray6_rank3_i4p interface~encode_binary_dataarray->proc~encode_binary_dataarray1_rank1_i2p interface~encode_binary_dataarray->proc~encode_binary_dataarray3_rank1_r8p interface~encode_binary_dataarray->proc~encode_binary_dataarray3_rank3_i1p interface~encode_binary_dataarray->proc~encode_binary_dataarray1_rank3_i8p interface~encode_binary_dataarray->proc~encode_binary_dataarray6_rank3_i2p interface~encode_binary_dataarray->proc~encode_binary_dataarray1_rank1_i1p interface~encode_binary_dataarray->proc~encode_binary_dataarray3_rank1_r4p interface~encode_binary_dataarray->proc~encode_binary_dataarray6_rank1_r8p interface~encode_binary_dataarray->proc~encode_binary_dataarray1_rank3_i4p interface~encode_binary_dataarray->proc~encode_binary_dataarray6_rank3_i1p interface~encode_binary_dataarray->proc~encode_binary_dataarray1_rank2_r8p interface~encode_binary_dataarray->proc~encode_binary_dataarray3_rank1_i8p interface~encode_binary_dataarray->proc~encode_binary_dataarray6_rank1_r4p interface~encode_binary_dataarray->proc~encode_binary_dataarray1_rank1_i4p interface~encode_binary_dataarray->proc~encode_binary_dataarray1_rank3_i2p interface~encode_binary_dataarray->proc~encode_binary_dataarray1_rank2_r4p interface~encode_binary_dataarray->proc~encode_binary_dataarray3_rank1_i4p interface~encode_binary_dataarray->proc~encode_binary_dataarray6_rank1_i8p interface~encode_binary_dataarray->proc~encode_binary_dataarray1_rank3_i1p interface~encode_binary_dataarray->proc~encode_binary_dataarray1_rank2_i8p interface~encode_binary_dataarray->proc~encode_binary_dataarray3_rank1_i2p interface~encode_binary_dataarray->proc~encode_binary_dataarray6_rank1_i4p interface~encode_binary_dataarray->proc~encode_binary_dataarray1_rank4_r8p interface~encode_binary_dataarray->proc~encode_binary_dataarray1_rank1_r8p interface~encode_binary_dataarray->proc~encode_binary_dataarray1_rank2_i4p interface~encode_binary_dataarray->proc~encode_binary_dataarray3_rank1_i1p interface~encode_binary_dataarray->proc~encode_binary_dataarray6_rank1_i2p interface~encode_binary_dataarray->proc~encode_binary_dataarray1_rank4_r4p proc~write_dataarray1_rank1_r4p~2 write_dataarray1_rank1_R4P proc~write_dataarray1_rank1_r4p~2->interface~encode_binary_dataarray proc~write_dataarray1_rank3_i1p~2 write_dataarray1_rank3_I1P proc~write_dataarray1_rank3_i1p~2->interface~encode_binary_dataarray proc~write_dataarray1_rank2_i4p~2 write_dataarray1_rank2_I4P proc~write_dataarray1_rank2_i4p~2->interface~encode_binary_dataarray proc~write_dataarray3_rank1_r4p~2 write_dataarray3_rank1_R4P proc~write_dataarray3_rank1_r4p~2->interface~encode_binary_dataarray proc~write_dataarray6_rank1_r4p~2 write_dataarray6_rank1_R4P proc~write_dataarray6_rank1_r4p~2->interface~encode_binary_dataarray proc~write_dataarray6_rank3_i4p~2 write_dataarray6_rank3_I4P proc~write_dataarray6_rank3_i4p~2->interface~encode_binary_dataarray proc~write_dataarray1_rank1_i2p~2 write_dataarray1_rank1_I2P proc~write_dataarray1_rank1_i2p~2->interface~encode_binary_dataarray proc~write_dataarray1_rank3_r8p~2 write_dataarray1_rank3_R8P proc~write_dataarray1_rank3_r8p~2->interface~encode_binary_dataarray proc~write_dataarray1_rank4_i8p~2 write_dataarray1_rank4_I8P proc~write_dataarray1_rank4_i8p~2->interface~encode_binary_dataarray proc~write_dataarray3_rank1_i2p~2 write_dataarray3_rank1_I2P proc~write_dataarray3_rank1_i2p~2->interface~encode_binary_dataarray proc~write_dataarray6_rank1_i2p~2 write_dataarray6_rank1_I2P proc~write_dataarray6_rank1_i2p~2->interface~encode_binary_dataarray proc~write_dataarray1_rank2_r4p~2 write_dataarray1_rank2_R4P proc~write_dataarray1_rank2_r4p~2->interface~encode_binary_dataarray proc~write_dataarray1_rank3_i4p~2 write_dataarray1_rank3_I4P proc~write_dataarray1_rank3_i4p~2->interface~encode_binary_dataarray proc~write_dataarray1_rank4_i1p~2 write_dataarray1_rank4_I1P proc~write_dataarray1_rank4_i1p~2->interface~encode_binary_dataarray proc~write_dataarray3_rank3_r4p~2 write_dataarray3_rank3_R4P proc~write_dataarray3_rank3_r4p~2->interface~encode_binary_dataarray proc~write_dataarray3_rank3_i1p~2 write_dataarray3_rank3_I1P proc~write_dataarray3_rank3_i1p~2->interface~encode_binary_dataarray proc~write_dataarray6_rank3_r4p~2 write_dataarray6_rank3_R4P proc~write_dataarray6_rank3_r4p~2->interface~encode_binary_dataarray proc~write_dataarray1_rank1_i8p~2 write_dataarray1_rank1_I8P proc~write_dataarray1_rank1_i8p~2->interface~encode_binary_dataarray proc~write_dataarray1_rank2_i2p~2 write_dataarray1_rank2_I2P proc~write_dataarray1_rank2_i2p~2->interface~encode_binary_dataarray proc~write_dataarray1_rank4_r8p~2 write_dataarray1_rank4_R8P proc~write_dataarray1_rank4_r8p~2->interface~encode_binary_dataarray proc~write_dataarray3_rank1_i8p~2 write_dataarray3_rank1_I8P proc~write_dataarray3_rank1_i8p~2->interface~encode_binary_dataarray proc~write_dataarray6_rank1_i8p~2 write_dataarray6_rank1_I8P proc~write_dataarray6_rank1_i8p~2->interface~encode_binary_dataarray proc~write_dataarray6_rank3_i2p~2 write_dataarray6_rank3_I2P proc~write_dataarray6_rank3_i2p~2->interface~encode_binary_dataarray proc~write_dataarray1_rank1_i1p~2 write_dataarray1_rank1_I1P proc~write_dataarray1_rank1_i1p~2->interface~encode_binary_dataarray proc~write_dataarray1_rank3_r4p~2 write_dataarray1_rank3_R4P proc~write_dataarray1_rank3_r4p~2->interface~encode_binary_dataarray proc~write_dataarray1_rank4_i4p~2 write_dataarray1_rank4_I4P proc~write_dataarray1_rank4_i4p~2->interface~encode_binary_dataarray proc~write_dataarray3_rank1_i1p~2 write_dataarray3_rank1_I1P proc~write_dataarray3_rank1_i1p~2->interface~encode_binary_dataarray proc~write_dataarray3_rank3_i4p~2 write_dataarray3_rank3_I4P proc~write_dataarray3_rank3_i4p~2->interface~encode_binary_dataarray proc~write_dataarray6_rank1_i1p~2 write_dataarray6_rank1_I1P proc~write_dataarray6_rank1_i1p~2->interface~encode_binary_dataarray proc~write_dataarray1_rank1_r8p~2 write_dataarray1_rank1_R8P proc~write_dataarray1_rank1_r8p~2->interface~encode_binary_dataarray proc~write_dataarray1_rank2_i8p~2 write_dataarray1_rank2_I8P proc~write_dataarray1_rank2_i8p~2->interface~encode_binary_dataarray proc~write_dataarray1_rank3_i2p~2 write_dataarray1_rank3_I2P proc~write_dataarray1_rank3_i2p~2->interface~encode_binary_dataarray proc~write_dataarray3_rank1_r8p~2 write_dataarray3_rank1_R8P proc~write_dataarray3_rank1_r8p~2->interface~encode_binary_dataarray proc~write_dataarray3_rank3_i8p~2 write_dataarray3_rank3_I8P proc~write_dataarray3_rank3_i8p~2->interface~encode_binary_dataarray proc~write_dataarray6_rank1_r8p~2 write_dataarray6_rank1_R8P proc~write_dataarray6_rank1_r8p~2->interface~encode_binary_dataarray proc~write_dataarray6_rank3_i8p~2 write_dataarray6_rank3_I8P proc~write_dataarray6_rank3_i8p~2->interface~encode_binary_dataarray proc~write_dataarray1_rank1_i4p~2 write_dataarray1_rank1_I4P proc~write_dataarray1_rank1_i4p~2->interface~encode_binary_dataarray proc~write_dataarray1_rank2_i1p~2 write_dataarray1_rank2_I1P proc~write_dataarray1_rank2_i1p~2->interface~encode_binary_dataarray proc~write_dataarray1_rank4_r4p~2 write_dataarray1_rank4_R4P proc~write_dataarray1_rank4_r4p~2->interface~encode_binary_dataarray proc~write_dataarray3_rank1_i4p~2 write_dataarray3_rank1_I4P proc~write_dataarray3_rank1_i4p~2->interface~encode_binary_dataarray proc~write_dataarray6_rank1_i4p~2 write_dataarray6_rank1_I4P proc~write_dataarray6_rank1_i4p~2->interface~encode_binary_dataarray proc~write_dataarray6_rank3_i1p~2 write_dataarray6_rank3_I1P proc~write_dataarray6_rank3_i1p~2->interface~encode_binary_dataarray proc~write_dataarray1_rank2_r8p~2 write_dataarray1_rank2_R8P proc~write_dataarray1_rank2_r8p~2->interface~encode_binary_dataarray proc~write_dataarray1_rank3_i8p~2 write_dataarray1_rank3_I8P proc~write_dataarray1_rank3_i8p~2->interface~encode_binary_dataarray proc~write_dataarray1_rank4_i2p~2 write_dataarray1_rank4_I2P proc~write_dataarray1_rank4_i2p~2->interface~encode_binary_dataarray proc~write_dataarray3_rank3_r8p~2 write_dataarray3_rank3_R8P proc~write_dataarray3_rank3_r8p~2->interface~encode_binary_dataarray proc~write_dataarray3_rank3_i2p~2 write_dataarray3_rank3_I2P proc~write_dataarray3_rank3_i2p~2->interface~encode_binary_dataarray proc~write_dataarray6_rank3_r8p~2 write_dataarray6_rank3_R8P proc~write_dataarray6_rank3_r8p~2->interface~encode_binary_dataarray

Contents

Source Code


Source Code

   pure subroutine b64_encode_I2(n, code)
   !< Encode scalar number to base64 (I2P).
   !<
   !<```fortran
   !< use befor64
   !< use penf
   !< character(len=:), allocatable :: code64
   !< call b64_encode(n=-203_I2P, code=code64)
   !< print "(A)", code64
   !<```
   !=> Nf8= <<<
   integer(I2P),                  intent(in)  :: n       !< Number to be encoded.
   character(len=:), allocatable, intent(out) :: code    !< Encoded scalar.
   integer(I1P),     allocatable              :: nI1P(:) !< One byte integer array containing n.
   integer(I4P)                               :: padd    !< Number of padding characters ('=').

   allocate(nI1P(1:((BYI2P+2)/3)*3)) ; nI1P = 0_I1P
   code = repeat(' ',((BYI2P+2)/3)*4)
   nI1P = transfer(n,nI1P)
   padd = mod((BYI2P),3_I2P) ; if (padd>0_I4P) padd = 3_I4P - padd
   call encode_bits(bits=nI1P,padd=padd,code=code)
   endsubroutine b64_encode_I2