Lines Matching refs:bytes
239 uint16_t get_u16_le(const uint8_t* bytes) { in get_u16_le() argument
240 return static_cast<uint16_t>(bytes[0] | (bytes[1] << 8)); in get_u16_le()
243 uint32_t get_u32_le(const uint8_t* bytes) { in get_u32_le() argument
245 bytes[0] | (bytes[1] << 8) | (bytes[2] << 16) | (bytes[3] << 24)); in get_u32_le()
248 uint64_t get_u64_le(const uint8_t* bytes) { in get_u64_le() argument
249 uint64_t lo = static_cast<uint64_t>(get_u32_le(bytes)); in get_u64_le()
250 uint64_t hi = static_cast<uint64_t>(get_u32_le(bytes + 4)); in get_u64_le()
254 uint16_t get_u16_be(const uint8_t* bytes) { in get_u16_be() argument
255 return static_cast<uint16_t>((bytes[0] << 8) | bytes[1]); in get_u16_be()
258 uint32_t get_u32_be(const uint8_t* bytes) { in get_u32_be() argument
260 (bytes[0] << 24) | (bytes[1] << 16) | (bytes[2] << 8) | bytes[3]); in get_u32_be()
263 uint64_t get_u64_be(const uint8_t* bytes) { in get_u64_be() argument
264 uint64_t hi = static_cast<uint64_t>(get_u32_be(bytes)); in get_u64_be()
265 uint64_t lo = static_cast<uint64_t>(get_u32_be(bytes + 4)); in get_u64_be()