Lines Matching refs:flush
60 #define DEFLATE_HOOK(strm, flush, bstate) 0 argument
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 in zlib_deflate() argument
338 flush > Z_FINISH || flush < 0) { in zlib_deflate()
344 (s->status == FINISH_STATE && flush != Z_FINISH)) { in zlib_deflate()
351 s->last_flush = flush; in zlib_deflate()
393 } else if (strm->avail_in == 0 && flush <= old_flush && in zlib_deflate()
394 flush != Z_FINISH) { in zlib_deflate()
406 (flush != Z_NO_FLUSH && s->status != FINISH_STATE)) { in zlib_deflate()
409 bstate = DEFLATE_HOOK(strm, flush, &bstate) ? bstate : in zlib_deflate()
410 (*(configuration_table[s->level].func))(s, flush); in zlib_deflate()
429 if (flush == Z_PARTIAL_FLUSH) { in zlib_deflate()
431 } else if (flush == Z_PACKET_FLUSH) { in zlib_deflate()
440 if (flush == Z_FULL_FLUSH) { in zlib_deflate()
453 if (flush != Z_FINISH) return Z_OK; in zlib_deflate()
866 int flush in deflate_stored() argument
888 if (s->lookahead == 0 && flush == Z_NO_FLUSH) return need_more; in deflate_stored()
912 FLUSH_BLOCK(s, flush == Z_FINISH); in deflate_stored()
913 return flush == Z_FINISH ? finish_done : block_done; in deflate_stored()
925 int flush in deflate_fast() argument
939 if (s->lookahead < MIN_LOOKAHEAD && flush == Z_NO_FLUSH) { in deflate_fast()
1008 FLUSH_BLOCK(s, flush == Z_FINISH); in deflate_fast()
1009 return flush == Z_FINISH ? finish_done : block_done; in deflate_fast()
1019 int flush in deflate_slow() argument
1034 if (s->lookahead < MIN_LOOKAHEAD && flush == Z_NO_FLUSH) { in deflate_slow()
1124 Assert (flush != Z_NO_FLUSH, "no flush?"); in deflate_slow()
1130 FLUSH_BLOCK(s, flush == Z_FINISH); in deflate_slow()
1131 return flush == Z_FINISH ? finish_done : block_done; in deflate_slow()