| 387 | #define KT_LOCAL_HEADER_SIZE 30 |
| 388 | |
| 389 | inline bool read16(const uint8_t *base, uint64_t size, uint64_t offset, uint16_t &out) |
| 390 | { |
| 391 | if (offset + 2 > size) |
| 392 | return false; |
| 393 | std::memcpy(&out, base + offset, 2); |
| 394 | return true; |
| 395 | } |
| 396 | |
| 397 | inline bool read32(const uint8_t *base, uint64_t size, uint64_t offset, uint32_t &out) |
| 398 | { |
no outgoing calls
no test coverage detected