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;
462 * to flush the rest.
866 int flush
888 if (s->lookahead == 0 && flush == Z_NO_FLUSH) return need_more;
890 if (s->lookahead == 0) break; /* flush the current block */
912 FLUSH_BLOCK(s, flush == Z_FINISH);
913 return flush == Z_FINISH ? finish_done : block_done;
925 int flush
939 if (s->lookahead < MIN_LOOKAHEAD && flush == Z_NO_FLUSH) {
942 if (s->lookahead == 0) break; /* flush the current block */
1008 FLUSH_BLOCK(s, flush == Z_FINISH);
1009 return flush == Z_FINISH ? finish_done : block_done;
1019 int flush
1034 if (s->lookahead < MIN_LOOKAHEAD && flush == Z_NO_FLUSH) {
1037 if (s->lookahead == 0) break; /* flush the current block */
1124 Assert (flush != Z_NO_FLUSH, "no flush?");
1130 FLUSH_BLOCK(s, flush == Z_FINISH);
1131 return flush == Z_FINISH ? finish_done : block_done;