Lines Matching refs:stored_len
593 void Z_INTERNAL zng_tr_stored_block(deflate_state *s, char *buf, uint32_t stored_len, int last) { in zng_tr_stored_block() argument
600 put_short(s, (uint16_t)stored_len); in zng_tr_stored_block()
601 put_short(s, (uint16_t)~stored_len); in zng_tr_stored_block()
604 if (stored_len) { in zng_tr_stored_block()
605 memcpy(s->pending_buf + s->pending, (unsigned char *)buf, stored_len); in zng_tr_stored_block()
606 s->pending += stored_len; in zng_tr_stored_block()
607 cmpr_bits_add(s, stored_len << 3); in zng_tr_stored_block()
608 sent_bits_add(s, stored_len << 3); in zng_tr_stored_block()
633 void Z_INTERNAL zng_tr_flush_block(deflate_state *s, char *buf, uint32_t stored_len, int last) { argument
666 opt_lenb, s->opt_len, static_lenb, s->static_len, stored_len,
674 opt_lenb = static_lenb = stored_len + 5; /* force a stored block */
680 if (stored_len+4 <= opt_lenb && buf != NULL) {
689 zng_tr_stored_block(s, buf, stored_len, last);