22 return (
uint16_t) ptr[offset + 0] << 8 |
28 return (uint32_t) ptr[offset + 0] << 24 |
29 (uint32_t) ptr[offset + 1] << 16 |
30 (uint32_t) ptr[offset + 2] << 8 |
31 (uint32_t) ptr[offset + 3] << 0;
36 return (uint64_t) ptr[offset + 0] << 56 |
37 (uint64_t) ptr[offset + 1] << 48 |
38 (uint64_t) ptr[offset + 2] << 40 |
39 (uint64_t) ptr[offset + 3] << 32 |
40 (uint64_t) ptr[offset + 4] << 24 |
41 (uint64_t) ptr[offset + 5] << 16 |
42 (uint64_t) ptr[offset + 6] << 8 |
43 (uint64_t) ptr[offset + 7] << 0;
48 return (
uint16_t) ptr[offset + 0] << 0 |
54 return (uint32_t) ptr[offset + 0] << 0 |
55 (uint32_t) ptr[offset + 1] << 8 |
56 (uint32_t) ptr[offset + 2] << 16 |
57 (uint32_t) ptr[offset + 3] << 24;
62 return (uint64_t) ptr[offset + 0] << 0 |
63 (uint64_t) ptr[offset + 1] << 8 |
64 (uint64_t) ptr[offset + 2] << 16 |
65 (uint64_t) ptr[offset + 3] << 24 |
66 (uint64_t) ptr[offset + 4] << 32 |
67 (uint64_t) ptr[offset + 5] << 40 |
68 (uint64_t) ptr[offset + 6] << 48 |
69 (uint64_t) ptr[offset + 7] << 56;
uint32_t read_u32_le(const uint8_t *ptr, size_t offset)
uint64_t read_u64_le(const uint8_t *ptr, size_t offset)
uint16_t read_u16_le(const uint8_t *ptr, size_t offset)
uint32_t read_u32_be(const uint8_t *ptr, size_t offset)
uint64_t read_u64_be(const uint8_t *ptr, size_t offset)
uint16_t read_u16_be(const uint8_t *ptr, size_t offset)