5#include "flutter/shell/common/base64.h"
7#include "flutter/fml/logging.h"
15 "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
16 "abcdefghijklmnopqrstuvwxyz"
20 62, -1, -1, -1, 63, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -1,
21 -1, -1,
DecodePad, -1, -1, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
22 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25,
23 -1, -1, -1, -1, -1, -1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35,
24 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51};
32 const unsigned char*
src =
static_cast<const unsigned char*
>(srcv);
33 unsigned char*
dst =
static_cast<unsigned char*
>(dstv);
37 bool padThree =
false;
38 char unsigned const*
const end =
src + srcLength;
40 unsigned char bytes[4] = {0, 0, 0, 0};
43 unsigned char srcByte = *
src++;
51 if (srcByte < '+' || srcByte >
'z') {
55 bytes[byte] = decoded;
87 int one = (uint8_t)(bytes[0] << 2);
90 two = (uint8_t)((
two << 4) & 0xFF);
93 three = (uint8_t)((three << 6) & 0xFF);
96 dst[
i] = (
unsigned char)one;
110 dst[
i] = (
unsigned char)three;
120 const unsigned char*
src =
static_cast<const unsigned char*
>(srcv);
121 unsigned char*
dst =
static_cast<unsigned char*
>(dstv);
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;
144 int a = (uint8_t)*
src++;
145 if (remainder == 2) {
148 k2 = (
b << 2) & 0x3F;
static void encode(uint8_t output[16], const uint32_t input[4])
VULKAN_HPP_DEFAULT_DISPATCH_LOADER_DYNAMIC_STORAGE auto & d
#define FML_DCHECK(condition)
static const char kDefaultEncode[]
static const signed char kDecodeData[]
static size_t Encode(const void *src, size_t length, void *dst)
static Error Decode(const void *src, size_t srcLength, void *dst, size_t *dstLength)
static size_t EncodedSize(size_t srcDataLength)