MCPcopy Create free account
hub / github.com/RsyncProject/rsync / bi_windup

Function bi_windup

zlib/trees.c:1120–1132  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1118 * Flush the bit buffer and align the output on a byte boundary
1119 */
1120local void bi_windup(deflate_state *s)
1121{
1122 if (s->bi_valid > 8) {
1123 put_short(s, s->bi_buf);
1124 } else if (s->bi_valid > 0) {
1125 put_byte(s, (Byte)s->bi_buf);
1126 }
1127 s->bi_buf = 0;
1128 s->bi_valid = 0;
1129#ifdef DEBUG
1130 s->bits_sent = (s->bits_sent+7) & ~7;
1131#endif
1132}
1133
1134/* ===========================================================================
1135 * 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