Lines Matching refs:flush

233 int mz_deflate(mz_streamp pStream, int flush)  in mz_deflate()  argument
239 … if ((!pStream) || (!pStream->state) || (flush < 0) || (flush > MZ_FINISH) || (!pStream->next_out)) in mz_deflate()
244 if (flush == MZ_PARTIAL_FLUSH) in mz_deflate()
245 flush = MZ_SYNC_FLUSH; in mz_deflate()
248 return (flush == MZ_FINISH) ? MZ_STREAM_END : MZ_BUF_ERROR; in mz_deflate()
258 … *)pStream->state, pStream->next_in, &in_bytes, pStream->next_out, &out_bytes, (tdefl_flush)flush); in mz_deflate()
280 else if ((!pStream->avail_in) && (flush != MZ_FINISH)) in mz_deflate()
282 … if ((flush) || (pStream->total_in != orig_total_in) || (pStream->total_out != orig_total_out)) in mz_deflate()
426 int mz_inflate(mz_streamp pStream, int flush) in mz_inflate() argument
435 if (flush == MZ_PARTIAL_FLUSH) in mz_inflate()
436 flush = MZ_SYNC_FLUSH; in mz_inflate()
437 if ((flush) && (flush != MZ_SYNC_FLUSH) && (flush != MZ_FINISH)) in mz_inflate()
450 if (pState->m_has_flushed && (flush != MZ_FINISH)) in mz_inflate()
452 pState->m_has_flushed |= (flush == MZ_FINISH); in mz_inflate()
454 if ((flush == MZ_FINISH) && (first_call)) in mz_inflate()
480 if (flush != MZ_FINISH) in mz_inflate()
522 else if (flush == MZ_FINISH) in mz_inflate()
1232 static int tdefl_flush_block(tdefl_compressor *d, int flush) in tdefl_flush_block() argument
1256 TDEFL_PUT_BITS(flush == TDEFL_FINISH, 1); in tdefl_flush_block()
1294 if (flush) in tdefl_flush_block()
1296 if (flush == TDEFL_FINISH) in tdefl_flush_block()
1715 tdefl_flush flush = d->m_flush; in tdefl_compress_normal() local
1717 while ((src_buf_left) || ((flush) && (d->m_lookahead_size))) in tdefl_compress_normal()
1762 if ((!flush) && (d->m_lookahead_size < TDEFL_MAX_MATCH_LEN)) in tdefl_compress_normal()
1877 …onst void *pIn_buf, size_t *pIn_buf_size, void *pOut_buf, size_t *pOut_buf_size, tdefl_flush flush) in tdefl_compress() argument
1895 d->m_flush = flush; in tdefl_compress()
1898 …(d->m_wants_to_finish && (flush != TDEFL_FINISH)) || (pIn_buf_size && *pIn_buf_size && !pIn_buf) |… in tdefl_compress()
1906 d->m_wants_to_finish |= (flush == TDEFL_FINISH); in tdefl_compress()
1929 if ((flush) && (!d->m_lookahead_size) && (!d->m_src_buf_left) && (!d->m_output_flush_remaining)) in tdefl_compress()
1931 if (tdefl_flush_block(d, flush) < 0) in tdefl_compress()
1933 d->m_finished = (flush == TDEFL_FINISH); in tdefl_compress()
1934 if (flush == TDEFL_FULL_FLUSH) in tdefl_compress()
1945 …fl_compress_buffer(tdefl_compressor *d, const void *pIn_buf, size_t in_buf_size, tdefl_flush flush) in tdefl_compress_buffer() argument
1948 return tdefl_compress(d, pIn_buf, &in_buf_size, NULL, NULL, flush); in tdefl_compress_buffer()
6589 tdefl_flush flush = TDEFL_NO_FLUSH; in mz_zip_writer_add_read_buf_callback() local
6602 flush = TDEFL_FULL_FLUSH; in mz_zip_writer_add_read_buf_callback()
6604 …us = tdefl_compress_buffer(pComp, pRead_buf, in_buf_size, uncomp_remaining ? flush : TDEFL_FINISH); in mz_zip_writer_add_read_buf_callback()