| 4674 | } |
| 4675 | |
| 4676 | mz_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 | |
| 4690 | static size_t mz_zip_mem_read_func(void *pOpaque, mz_uint64 file_ofs, |
| 4691 | void *pBuf, size_t n) { |
nothing calls this directly
no test coverage detected