| 21 | } |
| 22 | |
| 23 | uint32_t read_u32le(const uint8_t * data) { |
| 24 | return static_cast<uint32_t>(data[0]) | (static_cast<uint32_t>(data[1]) << 8) | |
| 25 | (static_cast<uint32_t>(data[2]) << 16) | (static_cast<uint32_t>(data[3]) << 24); |
| 26 | } |
| 27 | |
| 28 | std::vector<uint8_t> read_file(const std::filesystem::path & path) { |
| 29 | std::ifstream stream(path, std::ios::binary | std::ios::ate); |
no outgoing calls
no test coverage detected