Lines Matching refs:flush
60 #define DEFLATE_HOOK(strm, flush, bstate) 0
69 typedef block_state (*compress_func) (deflate_state *s, int flush);
73 static block_state deflate_stored (deflate_state *s, int flush);
74 static block_state deflate_fast (deflate_state *s, int flush);
75 static block_state deflate_slow (deflate_state *s, int flush);
331 int flush
334 int old_flush; /* value of flush param for previous deflate call */
338 flush > Z_FINISH || flush < 0) {
344 (s->status == FINISH_STATE && flush != Z_FINISH)) {
351 s->last_flush = flush;
393 } else if (strm->avail_in == 0 && flush <= old_flush &&
394 flush != Z_FINISH) {
406 (flush != Z_NO_FLUSH && s->status != FINISH_STATE)) {
409 bstate = DEFLATE_HOOK(strm, flush, &bstate) ? bstate :
410 (*(configuration_table[s->level].func))(s, flush);
420 /* If flush != Z_NO_FLUSH && avail_out == 0, the next call
421 * of deflate should use the same flush parameter to make sure
422 * that the flush is complete. So we don't have to output an
429 if (flush == Z_PARTIAL_FLUSH) {
431 } else if (flush == Z_PACKET_FLUSH) {
437 /* For a full flush, this empty block will be recognized
440 if (flush == Z_FULL_FLUSH) {
453 if (flush != Z_FINISH) return Z_OK;
461 * to flush the rest.
859 int flush
881 if (s->lookahead == 0 && flush == Z_NO_FLUSH) return need_more;
883 if (s->lookahead == 0) break; /* flush the current block */
905 FLUSH_BLOCK(s, flush == Z_FINISH);
906 return flush == Z_FINISH ? finish_done : block_done;
918 int flush
932 if (s->lookahead < MIN_LOOKAHEAD && flush == Z_NO_FLUSH) {
935 if (s->lookahead == 0) break; /* flush the current block */
1001 FLUSH_BLOCK(s, flush == Z_FINISH);
1002 return flush == Z_FINISH ? finish_done : block_done;
1012 int flush
1027 if (s->lookahead < MIN_LOOKAHEAD && flush == Z_NO_FLUSH) {
1030 if (s->lookahead == 0) break; /* flush the current block */
1117 Assert (flush != Z_NO_FLUSH, "no flush?");
1123 FLUSH_BLOCK(s, flush == Z_FINISH);
1124 return flush == Z_FINISH ? finish_done : block_done;