Lines Matching refs:bytes
35 static inline void Append1BE(std::vector<uint8_t>& bytes, uint8_t value) { in Append1BE() argument
36 bytes.push_back(value); in Append1BE()
39 static inline void Append2BE(std::vector<uint8_t>& bytes, uint16_t value) { in Append2BE() argument
40 bytes.push_back(static_cast<uint8_t>(value >> 8)); in Append2BE()
41 bytes.push_back(static_cast<uint8_t>(value)); in Append2BE()
44 static inline void Append4BE(std::vector<uint8_t>& bytes, uint32_t value) { in Append4BE() argument
45 bytes.push_back(static_cast<uint8_t>(value >> 24)); in Append4BE()
46 bytes.push_back(static_cast<uint8_t>(value >> 16)); in Append4BE()
47 bytes.push_back(static_cast<uint8_t>(value >> 8)); in Append4BE()
48 bytes.push_back(static_cast<uint8_t>(value)); in Append4BE()
51 static inline void Append8BE(std::vector<uint8_t>& bytes, uint64_t value) { in Append8BE() argument
52 bytes.push_back(static_cast<uint8_t>(value >> 56)); in Append8BE()
53 bytes.push_back(static_cast<uint8_t>(value >> 48)); in Append8BE()
54 bytes.push_back(static_cast<uint8_t>(value >> 40)); in Append8BE()
55 bytes.push_back(static_cast<uint8_t>(value >> 32)); in Append8BE()
56 bytes.push_back(static_cast<uint8_t>(value >> 24)); in Append8BE()
57 bytes.push_back(static_cast<uint8_t>(value >> 16)); in Append8BE()
58 bytes.push_back(static_cast<uint8_t>(value >> 8)); in Append8BE()
59 bytes.push_back(static_cast<uint8_t>(value)); in Append8BE()
62 static inline void AppendUtf16BE(std::vector<uint8_t>& bytes, const uint16_t* chars, size_t char_co… in AppendUtf16BE() argument
63 Append4BE(bytes, char_count); in AppendUtf16BE()
65 Append2BE(bytes, chars[i]); in AppendUtf16BE()