19 "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
20 "abcdefghijklmnopqrstuvwxyz"
25 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -1, -1, -1,
DecodePad, -1, -1,
26 -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
27 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -1, -1, -1, -1, -1,
28 -1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40,
29 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51
33#pragma warning ( push )
34#pragma warning ( disable : 4701 )
38 const unsigned char*
src =
static_cast<const unsigned char*
>(srcv);
39 unsigned char*
dst =
static_cast<unsigned char*
>(dstv);
43 bool padThree =
false;
44 char unsigned const *
const end =
src + srcLength;
46 unsigned char bytes[4];
49 unsigned char srcByte = *
src++;
54 if (srcByte < '+' || srcByte >
'z')
56 signed char decoded =
decodeData[srcByte -
'+'];
57 bytes[byte] = decoded;
81 int one = (uint8_t) (bytes[0] << 2);
84 two = (uint8_t) ((
two << 4) & 0xFF);
87 three = (uint8_t) ((three << 6) & 0xFF);
90 dst[
i] = (
unsigned char) one;
101 dst[
i] = (
unsigned char) three;
110#pragma warning ( pop )
114 const unsigned char*
src =
static_cast<const unsigned char*
>(srcv);
115 unsigned char*
dst =
static_cast<unsigned char*
>(dstv);
118 if (
nullptr == encodeMap) {
124 size_t remainder =
length % 3;
125 char unsigned const *
const end = &
src[
length - remainder];
131 c = (c >> 6 |
b << 2) & 0x3F;
132 b = (
b >> 4 |
a << 4) & 0x3F;
142 int a = (uint8_t) *
src++;
147 k2 = (
b << 2) & 0x3F;
static const signed char decodeData[]
static const char default_encode[]
static void encode(uint8_t output[16], const uint32_t input[4])
VULKAN_HPP_DEFAULT_DISPATCH_LOADER_DYNAMIC_STORAGE auto & d
static Error Decode(const void *src, size_t srcLength, void *dst, size_t *dstLength)
static size_t EncodedSize(size_t srcDataLength)
static size_t Encode(const void *src, size_t length, void *dst, const char *encode=nullptr)