MCPcopy Create free account
hub / github.com/TheRealMJP/DeferredTexturing / mz_zip_reader_init

Function mz_zip_reader_init

SampleFramework12/v1.00/TinyEXR.cpp:4676–4688  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4674}
4675
4676mz_bool mz_zip_reader_init(mz_zip_archive *pZip, mz_uint64 size,
4677 mz_uint32 flags) {
4678 if ((!pZip) || (!pZip->m_pRead))
4679 return MZ_FALSE;
4680 if (!mz_zip_reader_init_internal(pZip, flags))
4681 return MZ_FALSE;
4682 pZip->m_archive_size = size;
4683 if (!mz_zip_reader_read_central_dir(pZip, flags)) {
4684 mz_zip_reader_end(pZip);
4685 return MZ_FALSE;
4686 }
4687 return MZ_TRUE;
4688}
4689
4690static size_t mz_zip_mem_read_func(void *pOpaque, mz_uint64 file_ofs,
4691 void *pBuf, size_t n) {

Callers

nothing calls this directly

Calls 3

mz_zip_reader_endFunction · 0.85

Tested by

no test coverage detected