Lines Matching refs:file_index
1384 mz_bool mz_zip_reader_file_stat(mz_zip_archive *pZip, mz_uint file_index,
1389 mz_uint file_index);
1391 mz_uint file_index);
1397 mz_uint mz_zip_reader_get_filename(mz_zip_archive *pZip, mz_uint file_index,
1408 mz_uint file_index, void *pBuf,
1417 mz_bool mz_zip_reader_extract_to_mem(mz_zip_archive *pZip, mz_uint file_index,
1425 void *mz_zip_reader_extract_to_heap(mz_zip_archive *pZip, mz_uint file_index,
1433 mz_uint file_index,
1445 mz_bool mz_zip_reader_extract_to_file(mz_zip_archive *pZip, mz_uint file_index,
1521 mz_uint file_index);
5251 mz_zip_archive *pZip, mz_uint file_index) { in mz_zip_reader_get_cdh() argument
5252 if ((!pZip) || (!pZip->m_pState) || (file_index >= pZip->m_total_files) || in mz_zip_reader_get_cdh()
5258 file_index)); in mz_zip_reader_get_cdh()
5262 mz_uint file_index) { in mz_zip_reader_is_file_encrypted() argument
5264 const mz_uint8 *p = mz_zip_reader_get_cdh(pZip, file_index); in mz_zip_reader_is_file_encrypted()
5271 mz_uint file_index) { in mz_zip_reader_is_file_a_directory() argument
5273 const mz_uint8 *p = mz_zip_reader_get_cdh(pZip, file_index); in mz_zip_reader_is_file_a_directory()
5295 mz_bool mz_zip_reader_file_stat(mz_zip_archive *pZip, mz_uint file_index, in mz_zip_reader_file_stat() argument
5298 const mz_uint8 *p = mz_zip_reader_get_cdh(pZip, file_index); in mz_zip_reader_file_stat()
5302 pStat->m_file_index = file_index; in mz_zip_reader_file_stat()
5304 &pZip->m_pState->m_central_dir_offsets, mz_uint32, file_index); in mz_zip_reader_file_stat()
5340 mz_uint mz_zip_reader_get_filename(mz_zip_archive *pZip, mz_uint file_index, in mz_zip_reader_get_filename() argument
5343 const mz_uint8 *p = mz_zip_reader_get_cdh(pZip, file_index); in mz_zip_reader_get_filename()
5400 int m = (l + h) >> 1, file_index = pIndices[m], in mz_zip_reader_locate_file_binary_search() local
5403 file_index, pFilename, filename_len); in mz_zip_reader_locate_file_binary_search()
5405 return file_index; in mz_zip_reader_locate_file_binary_search()
5416 mz_uint file_index; in mz_zip_reader_locate_file() local
5428 for (file_index = 0; file_index < pZip->m_total_files; file_index++) { in mz_zip_reader_locate_file()
5432 file_index)); in mz_zip_reader_locate_file()
5460 return file_index; in mz_zip_reader_locate_file()
5466 mz_uint file_index, void *pBuf, in mz_zip_reader_extract_to_mem_no_alloc() argument
5483 if (!mz_zip_reader_file_stat(pZip, file_index, &file_stat)) return MZ_FALSE; in mz_zip_reader_extract_to_mem_no_alloc()
5493 if (mz_zip_reader_is_file_a_directory(pZip, file_index)) return MZ_TRUE; in mz_zip_reader_extract_to_mem_no_alloc()
5609 int file_index = mz_zip_reader_locate_file(pZip, pFilename, NULL, flags); in mz_zip_reader_extract_file_to_mem_no_alloc() local
5610 if (file_index < 0) return MZ_FALSE; in mz_zip_reader_extract_file_to_mem_no_alloc()
5611 return mz_zip_reader_extract_to_mem_no_alloc(pZip, file_index, pBuf, buf_size, in mz_zip_reader_extract_file_to_mem_no_alloc()
5616 mz_bool mz_zip_reader_extract_to_mem(mz_zip_archive *pZip, mz_uint file_index, in mz_zip_reader_extract_to_mem() argument
5619 return mz_zip_reader_extract_to_mem_no_alloc(pZip, file_index, pBuf, buf_size, in mz_zip_reader_extract_to_mem()
5630 void *mz_zip_reader_extract_to_heap(mz_zip_archive *pZip, mz_uint file_index, in mz_zip_reader_extract_to_heap() argument
5633 const mz_uint8 *p = mz_zip_reader_get_cdh(pZip, file_index); in mz_zip_reader_extract_to_heap()
5653 if (!mz_zip_reader_extract_to_mem(pZip, file_index, pBuf, (size_t)alloc_size, in mz_zip_reader_extract_to_heap()
5666 int file_index = mz_zip_reader_locate_file(pZip, pFilename, NULL, flags); in mz_zip_reader_extract_file_to_heap() local
5667 if (file_index < 0) { in mz_zip_reader_extract_file_to_heap()
5671 return mz_zip_reader_extract_to_heap(pZip, file_index, pSize, flags); in mz_zip_reader_extract_file_to_heap()
5675 mz_uint file_index, in mz_zip_reader_extract_to_callback() argument
5690 if (!mz_zip_reader_file_stat(pZip, file_index, &file_stat)) return MZ_FALSE; in mz_zip_reader_extract_to_callback()
5700 if (mz_zip_reader_is_file_a_directory(pZip, file_index)) return MZ_TRUE; in mz_zip_reader_extract_to_callback()
5855 int file_index = mz_zip_reader_locate_file(pZip, pFilename, NULL, flags); in mz_zip_reader_extract_file_to_callback() local
5856 if (file_index < 0) return MZ_FALSE; in mz_zip_reader_extract_file_to_callback()
5857 return mz_zip_reader_extract_to_callback(pZip, file_index, pCallback, pOpaque, in mz_zip_reader_extract_file_to_callback()
5868 mz_bool mz_zip_reader_extract_to_file(mz_zip_archive *pZip, mz_uint file_index, in mz_zip_reader_extract_to_file() argument
5874 if (!mz_zip_reader_file_stat(pZip, file_index, &file_stat)) return MZ_FALSE; in mz_zip_reader_extract_to_file()
5878 pZip, file_index, mz_zip_file_write_callback, pFile, flags); in mz_zip_reader_extract_to_file()
5919 int file_index = in mz_zip_reader_extract_file_to_file() local
5921 if (file_index < 0) return MZ_FALSE; in mz_zip_reader_extract_file_to_file()
5922 return mz_zip_reader_extract_to_file(pZip, file_index, pDst_filename, flags); in mz_zip_reader_extract_file_to_file()
6633 mz_uint file_index) { in mz_zip_writer_add_from_zip_reader() argument
6650 (pSrc_central_header = mz_zip_reader_get_cdh(pSource_zip, file_index))) in mz_zip_writer_add_from_zip_reader()
6925 int file_index; in mz_zip_extract_archive_file_to_heap() local
6939 if ((file_index = mz_zip_reader_locate_file(&zip_archive, pArchive_name, NULL, in mz_zip_extract_archive_file_to_heap()
6941 p = mz_zip_reader_extract_to_heap(&zip_archive, file_index, pSize, flags); in mz_zip_extract_archive_file_to_heap()