MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / bi_windup

Function bi_windup

zlib/trees.c:1178–1191  ·  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

1176 * Flush the bit buffer and align the output on a byte boundary
1177 */
1178local void bi_windup(s)
1179 deflate_state *s;
1180{
1181 if (s->bi_valid > 8) {
1182 put_short(s, s->bi_buf);
1183 } else if (s->bi_valid > 0) {
1184 put_byte(s, (Byte)s->bi_buf);
1185 }
1186 s->bi_buf = 0;
1187 s->bi_valid = 0;
1188#ifdef DEBUG
1189 s->bits_sent = (s->bits_sent+7) & ~7;
1190#endif
1191}
1192
1193/* ===========================================================================
1194 * Copy a stored block, storing first the length and its

Callers 2

trees.cFile · 0.85
copy_blockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected