Lines Matching defs:FLUSH
378 int last_flush; /* value of flush param for previous deflate call */
582 # define _tr_tally_lit(s, c, flush) \
587 flush = (s->last_lit == s->lit_bufsize-1); \
589 # define _tr_tally_dist(s, distance, length, flush) \
597 flush = (s->last_lit == s->lit_bufsize-1); \
600 # define _tr_tally_lit(s, c, flush) flush = _tr_tally(s, 0, c)
601 # define _tr_tally_dist(s, distance, length, flush) \
602 flush = _tr_tally(s, distance, length)
677 block_done, /* block flush performed */
682 typedef block_state (*compress_func)(deflate_state *s, int flush);
686 local block_state deflate_stored(deflate_state *s, int flush);
687 local block_state deflate_fast(deflate_state *s, int flush);
688 local block_state deflate_slow(deflate_state *s, int flush);
992 /* Flush
1019 * Flush as much pending output as possible. All deflate() output goes
1046 int ZEXPORT deflate (z_streamp strm, int flush)
1048 int old_flush; /* value of flush param for previous deflate call */
1052 flush > Z_FINISH || flush < 0) {
1058 (s->status == FINISH_STATE && flush != Z_FINISH)) {
1065 s->last_flush = flush;
1089 /* Flush as much pending output as possible */
1107 } else if (strm->avail_in == 0 && flush <= old_flush &&
1108 flush != Z_FINISH) {
1120 (flush != Z_NO_FLUSH && s->status != FINISH_STATE)) {
1123 bstate = (*(configuration_table[s->level].func))(s, flush);
1133 /* If flush != Z_NO_FLUSH && avail_out == 0, the next call
1134 * of deflate should use the same flush parameter to make sure
1135 * that the flush is complete. So we don't have to output an
1142 if (flush == Z_PARTIAL_FLUSH) {
1144 } else if (flush == Z_PACKET_FLUSH) {
1150 /* For a full flush, this empty block will be recognized
1153 if (flush == Z_FULL_FLUSH) {
1166 if (flush != Z_FINISH) return Z_OK;
1174 * to flush the rest.
1674 * Flush the current block, with given end-of-file flag.
1685 Tracev((stderr,"[FLUSH]")); \
1703 local block_state deflate_stored(deflate_state *s, int flush)
1724 if (s->lookahead == 0 && flush == Z_NO_FLUSH) return need_more;
1726 if (s->lookahead == 0) break; /* flush the current block */
1741 /* Flush if we may have to slide, otherwise block_start may become
1748 FLUSH_BLOCK(s, flush == Z_FINISH);
1749 return flush == Z_FINISH ? finish_done : block_done;
1759 local block_state deflate_fast(deflate_state *s, int flush)
1772 if (s->lookahead < MIN_LOOKAHEAD && flush == Z_NO_FLUSH) {
1775 if (s->lookahead == 0) break; /* flush the current block */
1844 FLUSH_BLOCK(s, flush == Z_FINISH);
1845 return flush == Z_FINISH ? finish_done : block_done;
1853 local block_state deflate_slow(deflate_state *s, int flush)
1867 if (s->lookahead < MIN_LOOKAHEAD && flush == Z_NO_FLUSH) {
1870 if (s->lookahead == 0) break; /* flush the current block */
1958 Assert (flush != Z_NO_FLUSH, "no flush?");
1964 FLUSH_BLOCK(s, flush == Z_FINISH);
1965 return flush == Z_FINISH ? finish_done : block_done;
3071 * the last block flush, because compression would have been
3247 * Flush the bit buffer, keeping at most 7 bits in it.
3263 * Flush the bit buffer and align the output on a byte boundary
3640 z->msg = "need more for packet flush";
3944 #define FLUSH {UPDOUT r=inflate_flush(s,z,r); LOADOUT}
3945 #define NEEDOUT {if(m==0){WRAP if(m==0){FLUSH WRAP if(m==0) LEAVE}}r=Z_OK;}
4304 FLUSH
5278 FLUSH