Lines Matching refs:flush

95     block_done,     /* block flush performed */
100 typedef block_state (*compress_func) OF((deflate_state *s, int flush));
104 local block_state deflate_stored OF((deflate_state *s, int flush));
105 local block_state deflate_fast OF((deflate_state *s, int flush));
107 local block_state deflate_slow OF((deflate_state *s, int flush));
581 int ZEXPORT deflate (strm, flush)
583 int flush;
585 int old_flush; /* value of flush param for previous deflate call */
589 flush > Z_FINISH || flush < 0) {
596 (s->status == FINISH_STATE && flush != Z_FINISH)) {
603 s->last_flush = flush;
803 } else if (strm->avail_in == 0 && flush <= old_flush &&
804 flush != Z_FINISH) {
816 (flush != Z_NO_FLUSH && s->status != FINISH_STATE)) {
819 bstate = (*(configuration_table[s->level].func))(s, flush);
829 /* If flush != Z_NO_FLUSH && avail_out == 0, the next call
830 * of deflate should use the same flush parameter to make sure
831 * that the flush is complete. So we don't have to output an
838 if (flush == Z_PARTIAL_FLUSH) {
842 /* For a full flush, this empty block will be recognized
845 if (flush == Z_FULL_FLUSH) {
858 if (flush != Z_FINISH) return Z_OK;
881 * to flush the rest.
1419 local block_state deflate_stored(s, flush)
1421 int flush;
1442 if (s->lookahead == 0 && flush == Z_NO_FLUSH) return need_more;
1444 if (s->lookahead == 0) break; /* flush the current block */
1466 FLUSH_BLOCK(s, flush == Z_FINISH);
1467 return flush == Z_FINISH ? finish_done : block_done;
1477 local block_state deflate_fast(s, flush)
1479 int flush;
1492 if (s->lookahead < MIN_LOOKAHEAD && flush == Z_NO_FLUSH) {
1495 if (s->lookahead == 0) break; /* flush the current block */
1573 FLUSH_BLOCK(s, flush == Z_FINISH);
1574 return flush == Z_FINISH ? finish_done : block_done;
1583 local block_state deflate_slow(s, flush)
1585 int flush;
1599 if (s->lookahead < MIN_LOOKAHEAD && flush == Z_NO_FLUSH) {
1602 if (s->lookahead == 0) break; /* flush the current block */
1695 Assert (flush != Z_NO_FLUSH, "no flush?");
1701 FLUSH_BLOCK(s, flush == Z_FINISH);
1702 return flush == Z_FINISH ? finish_done : block_done;
1712 local block_state deflate_rle(s, flush)
1714 int flush;
1729 if (s->lookahead < MAX_MATCH && flush == Z_NO_FLUSH) {
1732 if (s->lookahead == 0) break; /* flush the current block */
1762 FLUSH_BLOCK(s, flush == Z_FINISH);
1763 return flush == Z_FINISH ? finish_done : block_done;