| 395 | } |
| 396 | |
| 397 | inline bool read32(const uint8_t *base, uint64_t size, uint64_t offset, uint32_t &out) |
| 398 | { |
| 399 | if (offset + 4 > size) |
| 400 | return false; |
| 401 | std::memcpy(&out, base + offset, 4); |
| 402 | return true; |
| 403 | } |
| 404 | |
| 405 | inline bool read64(const uint8_t *base, uint64_t size, uint64_t offset, uint64_t &out) |
| 406 | { |
no outgoing calls
no test coverage detected