Lines Matching refs:read_buf_avail

2780 …ze, cur_file_ofs, comp_remaining, out_buf_ofs = 0, read_buf_size, read_buf_ofs = 0, read_buf_avail;  in mz_zip_reader_extract_to_mem_no_alloc()  local
2840 read_buf_size = read_buf_avail = file_stat.m_comp_size; in mz_zip_reader_extract_to_mem_no_alloc()
2850 read_buf_avail = 0; in mz_zip_reader_extract_to_mem_no_alloc()
2865 read_buf_avail = 0; in mz_zip_reader_extract_to_mem_no_alloc()
2872 if ((!read_buf_avail) && (!pZip->m_pState->m_pMem)) in mz_zip_reader_extract_to_mem_no_alloc()
2874 read_buf_avail = MZ_MIN(read_buf_size, comp_remaining); in mz_zip_reader_extract_to_mem_no_alloc()
2875 …ip->m_pRead(pZip->m_pIO_opaque, cur_file_ofs, pRead_buf, (size_t)read_buf_avail) != read_buf_avail) in mz_zip_reader_extract_to_mem_no_alloc()
2880 cur_file_ofs += read_buf_avail; in mz_zip_reader_extract_to_mem_no_alloc()
2881 comp_remaining -= read_buf_avail; in mz_zip_reader_extract_to_mem_no_alloc()
2884 in_buf_size = (size_t)read_buf_avail; in mz_zip_reader_extract_to_mem_no_alloc()
2886 read_buf_avail -= in_buf_size; in mz_zip_reader_extract_to_mem_no_alloc()
2970 …mz_uint64 read_buf_size, read_buf_ofs = 0, read_buf_avail, comp_remaining, out_buf_ofs = 0, cur_fi… in mz_zip_reader_extract_to_callback() local
3010 read_buf_size = read_buf_avail = file_stat.m_comp_size; in mz_zip_reader_extract_to_callback()
3018 read_buf_avail = 0; in mz_zip_reader_extract_to_callback()
3045 read_buf_avail = MZ_MIN(read_buf_size, comp_remaining); in mz_zip_reader_extract_to_callback()
3046 …ip->m_pRead(pZip->m_pIO_opaque, cur_file_ofs, pRead_buf, (size_t)read_buf_avail) != read_buf_avail) 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()
3060 cur_file_ofs += read_buf_avail; in mz_zip_reader_extract_to_callback()
3061 out_buf_ofs += read_buf_avail; in mz_zip_reader_extract_to_callback()
3062 comp_remaining -= read_buf_avail; in mz_zip_reader_extract_to_callback()
3079 if ((!read_buf_avail) && (!pZip->m_pState->m_pMem)) in mz_zip_reader_extract_to_callback()
3081 read_buf_avail = MZ_MIN(read_buf_size, comp_remaining); in mz_zip_reader_extract_to_callback()
3082 …ip->m_pRead(pZip->m_pIO_opaque, cur_file_ofs, pRead_buf, (size_t)read_buf_avail) != read_buf_avail) in mz_zip_reader_extract_to_callback()
3087 cur_file_ofs += read_buf_avail; in mz_zip_reader_extract_to_callback()
3088 comp_remaining -= read_buf_avail; in mz_zip_reader_extract_to_callback()
3092 in_buf_size = (size_t)read_buf_avail; in mz_zip_reader_extract_to_callback()
3094 read_buf_avail -= in_buf_size; in mz_zip_reader_extract_to_callback()