| 403 | } |
| 404 | |
| 405 | inline bool read64(const uint8_t *base, uint64_t size, uint64_t offset, uint64_t &out) |
| 406 | { |
| 407 | if (offset + 8 > size) |
| 408 | return false; |
| 409 | std::memcpy(&out, base + offset, 8); |
| 410 | return true; |
| 411 | } |
| 412 | |
| 413 | bool findCentralDirectory(const uint8_t *data, uint64_t fileSize, uint64_t *cdOffset, uint64_t *totalEntries) |
| 414 | { |
no outgoing calls
no test coverage detected