MCPcopy Create free account
hub / github.com/defold/defold / GetEntryDataOffset

Function GetEntryDataOffset

engine/dlib/src/dlib/zip.cpp:96–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96Result GetEntryDataOffset(HZip zip, uint32_t offset, uint32_t size, void* buffer, uint32_t* nread)
97{
98 ssize_t nwritten = zip_entry_noallocreadwithoffset(zip, (size_t)offset, (size_t)size, buffer);
99 if (nwritten < 0)
100 return RESULT_BUFFER_NOT_LARGE_ENOUGH;
101 *nread = nwritten;
102 return RESULT_OK;
103}
104
105
106} // namespace

Callers 1

TEST_PFunction · 0.50

Calls 1

Tested by 1

TEST_PFunction · 0.40