Lines Matching refs:pRead_buf
2782 void *pRead_buf; in mz_zip_reader_extract_to_mem_no_alloc() local
2839 pRead_buf = (mz_uint8 *)pZip->m_pState->m_pMem + cur_file_ofs; in mz_zip_reader_extract_to_mem_no_alloc()
2848 pRead_buf = (mz_uint8 *)pUser_read_buf; in mz_zip_reader_extract_to_mem_no_alloc()
2863 if (NULL == (pRead_buf = pZip->m_pAlloc(pZip->m_pAlloc_opaque, 1, (size_t)read_buf_size))) in mz_zip_reader_extract_to_mem_no_alloc()
2875 …if (pZip->m_pRead(pZip->m_pIO_opaque, cur_file_ofs, pRead_buf, (size_t)read_buf_avail) != read_buf… in mz_zip_reader_extract_to_mem_no_alloc()
2885 …status = tinfl_decompress(&inflator, (mz_uint8 *)pRead_buf + read_buf_ofs, &in_buf_size, (mz_uint8… in mz_zip_reader_extract_to_mem_no_alloc()
2899 pZip->m_pFree(pZip->m_pAlloc_opaque, pRead_buf); in mz_zip_reader_extract_to_mem_no_alloc()
2972 void *pRead_buf = NULL; void *pWrite_buf = NULL; in mz_zip_reader_extract_to_callback() local
3009 pRead_buf = (mz_uint8 *)pZip->m_pState->m_pMem + cur_file_ofs; in mz_zip_reader_extract_to_callback()
3016 if (NULL == (pRead_buf = pZip->m_pAlloc(pZip->m_pAlloc_opaque, 1, (size_t)read_buf_size))) in mz_zip_reader_extract_to_callback()
3033 …if (pCallback(pOpaque, out_buf_ofs, pRead_buf, (size_t)file_stat.m_comp_size) != file_stat.m_comp_… in mz_zip_reader_extract_to_callback()
3036 …file_crc32 = (mz_uint32)mz_crc32(file_crc32, (const mz_uint8 *)pRead_buf, (size_t)file_stat.m_comp… in mz_zip_reader_extract_to_callback()
3046 …if (pZip->m_pRead(pZip->m_pIO_opaque, cur_file_ofs, pRead_buf, (size_t)read_buf_avail) != read_buf… in mz_zip_reader_extract_to_callback()
3053 … file_crc32 = (mz_uint32)mz_crc32(file_crc32, (const mz_uint8 *)pRead_buf, (size_t)read_buf_avail); in mz_zip_reader_extract_to_callback()
3055 if (pCallback(pOpaque, out_buf_ofs, pRead_buf, (size_t)read_buf_avail) != read_buf_avail) in mz_zip_reader_extract_to_callback()
3082 …if (pZip->m_pRead(pZip->m_pIO_opaque, cur_file_ofs, pRead_buf, (size_t)read_buf_avail) != read_buf… in mz_zip_reader_extract_to_callback()
3093 …status = tinfl_decompress(&inflator, (const mz_uint8 *)pRead_buf + read_buf_ofs, &in_buf_size, (mz… in mz_zip_reader_extract_to_callback()
3123 pZip->m_pFree(pZip->m_pAlloc_opaque, pRead_buf); in mz_zip_reader_extract_to_callback()
3720 void *pRead_buf = pZip->m_pAlloc(pZip->m_pAlloc_opaque, 1, MZ_ZIP_MAX_IO_BUF_SIZE); in mz_zip_writer_add_file() local
3721 if (!pRead_buf) in mz_zip_writer_add_file()
3732 …if ((MZ_FREAD(pRead_buf, 1, n, pSrc_file) != n) || (pZip->m_pWrite(pZip->m_pIO_opaque, cur_archive… in mz_zip_writer_add_file()
3734 pZip->m_pFree(pZip->m_pAlloc_opaque, pRead_buf); in mz_zip_writer_add_file()
3738 uncomp_crc32 = (mz_uint32)mz_crc32(uncomp_crc32, (const mz_uint8 *)pRead_buf, n); in mz_zip_writer_add_file()
3751 pZip->m_pFree(pZip->m_pAlloc_opaque, pRead_buf); in mz_zip_writer_add_file()
3763 pZip->m_pFree(pZip->m_pAlloc_opaque, pRead_buf); in mz_zip_writer_add_file()
3773 if (MZ_FREAD(pRead_buf, 1, in_buf_size, pSrc_file) != in_buf_size) in mz_zip_writer_add_file()
3776 uncomp_crc32 = (mz_uint32)mz_crc32(uncomp_crc32, (const mz_uint8 *)pRead_buf, in_buf_size); in mz_zip_writer_add_file()
3779 …status = tdefl_compress_buffer(pComp, pRead_buf, in_buf_size, uncomp_remaining ? TDEFL_NO_FLUSH : … in mz_zip_writer_add_file()
3793 pZip->m_pFree(pZip->m_pAlloc_opaque, pRead_buf); in mz_zip_writer_add_file()
3804 pZip->m_pFree(pZip->m_pAlloc_opaque, pRead_buf); in mz_zip_writer_add_file()