9 static const byte s_stdVec[] =
10 "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
12 static const byte s_urlVec[] =
13 "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";
14 static const byte s_padding =
'=';
21 const char *lineBreak = insertLineBreaks ?
"\n" :
"";
26 (Name::PaddingByte(), s_padding)
27 (Name::GroupSize(), insertLineBreaks ? maxLineLength : 0)
30 (Name::Log2Base(), 6,
true)));
38 const char *lineBreak = insertLineBreaks ?
"\n" :
"";
43 (Name::PaddingByte(), s_padding)
44 (Name::GroupSize(), insertLineBreaks ? maxLineLength : 0)
47 (Name::Log2Base(), 6,
true)));
54 MakeParameters(Name::DecodingLookupArray(), GetDecodingLookupArray(),
false)(Name::Log2Base(), 6,
true)));
57 const int *Base64Decoder::GetDecodingLookupArray()
59 static volatile bool s_initialized =
false;
60 static int s_array[256];
74 MakeParameters(Name::DecodingLookupArray(), GetDecodingLookupArray(),
false)(Name::Log2Base(), 6,
true)));
77 const int *Base64URLDecoder::GetDecodingLookupArray()
79 static volatile bool s_initialized =
false;
80 static int s_array[256];