MCPcopy Create free account
hub / github.com/MJx0/KittyMemoryEx / read16

Function read16

KittyMemoryEx/KittyUtils.cpp:389–395  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 2

findCentralDirectoryFunction · 0.85
listEntriesInZipFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected