Lines Matching defs:flush
1102 // flush may be MZ_NO_FLUSH, MZ_PARTIAL_FLUSH/MZ_SYNC_FLUSH, MZ_FULL_FLUSH, or
1115 int mz_deflate(mz_streamp pStream, int flush);
1124 // data that could be generated by deflate(), assuming flush is set to only
1155 // flush may be MZ_NO_FLUSH, MZ_SYNC_FLUSH, or MZ_FINISH.
1156 // On the first call, if flush is MZ_FINISH it's assumed the input and output
1176 int mz_inflate(mz_streamp pStream, int flush);
1607 // flush the buffer.
1890 size_t *pOut_buf_size, tdefl_flush flush);
1896 size_t in_buf_size, tdefl_flush flush);
2086 int mz_deflate(mz_streamp pStream, int flush) {
2091 if ((!pStream) || (!pStream->state) || (flush < 0) || (flush > MZ_FINISH) ||
2096 if (flush == MZ_PARTIAL_FLUSH) flush = MZ_SYNC_FLUSH;
2100 return (flush == MZ_FINISH) ? MZ_STREAM_END : MZ_BUF_ERROR;
2111 &out_bytes, (tdefl_flush)flush);
2129 else if ((!pStream->avail_in) && (flush != MZ_FINISH)) {
2130 if ((flush) || (pStream->total_in != orig_total_in) ||
2238 int mz_inflate(mz_streamp pStream, int flush) {
2245 if (flush == MZ_PARTIAL_FLUSH) flush = MZ_SYNC_FLUSH;
2246 if ((flush) && (flush != MZ_SYNC_FLUSH) && (flush != MZ_FINISH))
2257 if (pState->m_has_flushed && (flush != MZ_FINISH)) return MZ_STREAM_ERROR;
2258 pState->m_has_flushed |= (flush == MZ_FINISH);
2260 if ((flush == MZ_FINISH) && (first_call)) {
2286 // flush != MZ_FINISH then we must assume there's more input.
2287 if (flush != MZ_FINISH) decomp_flags |= TINFL_FLAG_HAS_MORE_INPUT;
2333 // without supplying more input or by setting flush
2335 else if (flush == MZ_FINISH) {
2337 // when flush==MZ_FINISH.
3649 static int tdefl_flush_block(tdefl_compressor *d, int flush) {
3677 TDEFL_PUT_BITS(flush == TDEFL_FINISH, 1);
3718 if (flush) {
3719 if (flush == TDEFL_FINISH) {
4106 tdefl_flush flush = d->m_flush;
4108 while ((src_buf_left) || ((flush) && (d->m_lookahead_size))) {
4159 if ((!flush) && (d->m_lookahead_size < TDEFL_MAX_MATCH_LEN)) break;
4225 // Check if it's time to flush the current LZ codes to the internal output
4268 size_t *pOut_buf_size, tdefl_flush flush) {
4282 d->m_flush = flush;
4287 (d->m_wants_to_finish && (flush != TDEFL_FINISH)) ||
4294 d->m_wants_to_finish |= (flush == TDEFL_FINISH);
4317 if ((flush) && (!d->m_lookahead_size) && (!d->m_src_buf_left) &&
4319 if (tdefl_flush_block(d, flush) < 0) return d->m_prev_return_status;
4320 d->m_finished = (flush == TDEFL_FINISH);
4321 if (flush == TDEFL_FULL_FLUSH) {
4332 size_t in_buf_size, tdefl_flush flush) {
4334 return tdefl_compress(d, pIn_buf, &in_buf_size, NULL, NULL, flush);