MCPcopy Create free account
hub / github.com/TruthHun/BookStack / bi_windup

Function bi_windup

static/word2md/mammoth.browser.js:22865–22875  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

22863 * Flush the bit buffer and align the output on a byte boundary
22864 */
22865function bi_windup(s)
22866{
22867 if (s.bi_valid > 8) {
22868 put_short(s, s.bi_buf);
22869 } else if (s.bi_valid > 0) {
22870 //put_byte(s, (Byte)s->bi_buf);
22871 s.pending_buf[s.pending++] = s.bi_buf;
22872 }
22873 s.bi_buf = 0;
22874 s.bi_valid = 0;
22875}
22876
22877/* ===========================================================================
22878 * 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