Lines Matching defs:byte
19 std::pair<uint8_t, uint8_t> SplitByte(uint8_t byte, uint8_t split) {
20 return {byte >> split, (byte & ((1 << split) - 1)) << (6 - split)};
23 v8::Maybe<uint8_t> DecodeByte(char byte) {
24 if ('A' <= byte && byte <= 'Z') return v8::Just<uint8_t>(byte - 'A');
25 if ('a' <= byte && byte <= 'z') return v8::Just<uint8_t>(byte - 'a' + 26);
26 if ('0' <= byte && byte <= '9')
27 return v8::Just<uint8_t>(byte - '0' + 26 + 26);
28 if (byte == '+') return v8::Just<uint8_t>(62);
29 if (byte == '/') return v8::Just<uint8_t>(63);