MCPcopy Create free account
hub / github.com/F-Stack/f-stack / bi_windup

Function bi_windup

freebsd/contrib/zlib/trees.c:1190–1203  ·  view source on GitHub ↗

=========================================================================== * Flush the bit buffer and align the output on a byte boundary */

(s)

Source from the content-addressed store, hash-verified

1188 * Flush the bit buffer and align the output on a byte boundary
1189 */
1190local void bi_windup(s)
1191 deflate_state *s;
1192{
1193 if (s->bi_valid > 8) {
1194 put_short(s, s->bi_buf);
1195 } else if (s->bi_valid > 0) {
1196 put_byte(s, (Byte)s->bi_buf);
1197 }
1198 s->bi_buf = 0;
1199 s->bi_valid = 0;
1200#ifdef ZLIB_DEBUG
1201 s->bits_sent = (s->bits_sent+7) & ~7;
1202#endif
1203}

Callers 2

_tr_stored_blockFunction · 0.85
trees.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected