MCPcopy Create free account
hub / github.com/hoothin/UserScripts / bi_windup

Function bi_windup

Picviewer CE+/dist.user.js:10883–10893  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

10881 * Flush the bit buffer and align the output on a byte boundary
10882 */
10883function bi_windup(s)
10884{
10885 if (s.bi_valid > 8) {
10886 put_short(s, s.bi_buf);
10887 } else if (s.bi_valid > 0) {
10888 //put_byte(s, (Byte)s->bi_buf);
10889 s.pending_buf[s.pending++] = s.bi_buf;
10890 }
10891 s.bi_buf = 0;
10892 s.bi_valid = 0;
10893}
10894
10895/* ===========================================================================
10896 * Copy a stored block, storing first the length and its

Callers 2

copy_blockFunction · 0.70
_tr_flush_blockFunction · 0.70

Calls 1

put_shortFunction · 0.70

Tested by

no test coverage detected