MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / bi_windup

Function bi_windup

extlibs/minizip/src/trees.c:1283–1300  ·  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

1281 * Flush the bit buffer and align the output on a byte boundary
1282 */
1283local void bi_windup(s)
1284
1285deflate_state* s;
1286{
1287 if (s->bi_valid > 8)
1288 {
1289 put_short(s, s->bi_buf);
1290 }
1291 else if (s->bi_valid > 0)
1292 {
1293 put_byte(s, (Byte)s->bi_buf);
1294 }
1295 s->bi_buf = 0;
1296 s->bi_valid = 0;
1297#ifdef ZLIB_DEBUG
1298 s->bits_sent = (s->bits_sent+7) & ~7;
1299#endif
1300}

Callers 2

_tr_stored_blockFunction · 0.85
trees.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected