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

Function mz_zip_reader_get_cdh

SampleFramework12/v1.00/TinyEXR.cpp:4763–4772  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4761}
4762
4763static MZ_FORCEINLINE const mz_uint8 *
4764mz_zip_reader_get_cdh(mz_zip_archive *pZip, mz_uint file_index) {
4765 if ((!pZip) || (!pZip->m_pState) || (file_index >= pZip->m_total_files) ||
4766 (pZip->m_zip_mode != MZ_ZIP_MODE_READING))
4767 return NULL;
4768 return &MZ_ZIP_ARRAY_ELEMENT(
4769 &pZip->m_pState->m_central_dir, mz_uint8,
4770 MZ_ZIP_ARRAY_ELEMENT(&pZip->m_pState->m_central_dir_offsets,
4771 mz_uint32, file_index));
4772}
4773
4774mz_bool mz_zip_reader_is_file_encrypted(mz_zip_archive *pZip,
4775 mz_uint file_index) {

Calls

no outgoing calls

Tested by

no test coverage detected