| 27 | |
| 28 | |
| 29 | uint32_t read_u32_swap(const std::vector<uint8_t>& vec, size_t offset) { |
| 30 | return byteswap(*reinterpret_cast<const uint32_t*>(&vec[offset])); |
| 31 | } |
| 32 | |
| 33 | uint32_t read_u32(const std::vector<uint8_t>& vec, size_t offset) { |
| 34 | return *reinterpret_cast<const uint32_t*>(&vec[offset]); |