Lines Matching defs:flush
78 block_done, /* block flush performed */
83 typedef block_state (*compress_func)(deflate_state *s, int flush);
86 local block_state deflate_stored(deflate_state *s, int flush);
87 local block_state deflate_fast(deflate_state *s, int flush);
89 local block_state deflate_slow(deflate_state *s, int flush);
91 local block_state deflate_rle(deflate_state *s, int flush);
92 local block_state deflate_huff(deflate_state *s, int flush);
984 int ZEXPORT deflate(z_streamp strm, int flush) {
985 int old_flush; /* value of flush param for previous deflate call */
988 if (deflateStateCheck(strm) || flush > Z_BLOCK || flush < 0) {
995 (s->status == FINISH_STATE && flush != Z_FINISH)) {
1001 s->last_flush = flush;
1021 } else if (strm->avail_in == 0 && RANK(flush) <= RANK(old_flush) &&
1022 flush != Z_FINISH) {
1217 (flush != Z_NO_FLUSH && s->status != FINISH_STATE)) {
1220 bstate = s->level == 0 ? deflate_stored(s, flush) :
1221 s->strategy == Z_HUFFMAN_ONLY ? deflate_huff(s, flush) :
1222 s->strategy == Z_RLE ? deflate_rle(s, flush) :
1223 (*(configuration_table[s->level].func))(s, flush);
1233 /* If flush != Z_NO_FLUSH && avail_out == 0, the next call
1234 * of deflate should use the same flush parameter to make sure
1235 * that the flush is complete. So we don't have to output an
1242 if (flush == Z_PARTIAL_FLUSH) {
1244 } else if (flush != Z_BLOCK) { /* FULL_FLUSH or SYNC_FLUSH */
1246 /* For a full flush, this empty block will be recognized
1249 if (flush == Z_FULL_FLUSH) {
1266 if (flush != Z_FINISH) return Z_OK;
1290 * to flush the rest.
1684 local block_state deflate_stored(deflate_state *s, int flush) {
1719 if (len < min_block && ((len == 0 && flush != Z_FINISH) ||
1720 flush == Z_NO_FLUSH ||
1727 last = flush == Z_FINISH && len == left + s->strm->avail_in ? 1 : 0;
1809 if (flush != Z_NO_FLUSH && flush != Z_FINISH &&
1847 ((left || flush == Z_FINISH) && flush != Z_NO_FLUSH &&
1850 last = flush == Z_FINISH && s->strm->avail_in == 0 &&
1868 local block_state deflate_fast(deflate_state *s, int flush) {
1880 if (s->lookahead < MIN_LOOKAHEAD && flush == Z_NO_FLUSH) {
1883 if (s->lookahead == 0) break; /* flush the current block */
1955 if (flush == Z_FINISH) {
1970 local block_state deflate_slow(deflate_state *s, int flush) {
1983 if (s->lookahead < MIN_LOOKAHEAD && flush == Z_NO_FLUSH) {
1986 if (s->lookahead == 0) break; /* flush the current block */
2082 Assert (flush != Z_NO_FLUSH, "no flush?");
2089 if (flush == Z_FINISH) {
2104 local block_state deflate_rle(deflate_state *s, int flush) {
2116 if (s->lookahead <= MAX_MATCH && flush == Z_NO_FLUSH) {
2119 if (s->lookahead == 0) break; /* flush the current block */
2162 if (flush == Z_FINISH) {
2175 local block_state deflate_huff(deflate_state *s, int flush) {
2183 if (flush == Z_NO_FLUSH)
2185 break; /* flush the current block */
2198 if (flush == Z_FINISH) {