Home | History | Annotate | Download | only in jdwp

Lines Matching refs:bytes

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