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

Function flush_pending

static/word2md/mammoth.browser.js:18366–18385  ·  view source on GitHub ↗
(strm)

Source from the content-addressed store, hash-verified

18364 * (See also read_buf()).
18365 */
18366function flush_pending(strm) {
18367 var s = strm.state;
18368
18369 //_tr_flush_bits(s);
18370 var len = s.pending;
18371 if (len > strm.avail_out) {
18372 len = strm.avail_out;
18373 }
18374 if (len === 0) { return; }
18375
18376 utils.arraySet(strm.output, s.pending_buf, s.pending_out, len, strm.next_out);
18377 strm.next_out += len;
18378 s.pending_out += len;
18379 strm.total_out += len;
18380 strm.avail_out -= len;
18381 s.pending -= len;
18382 if (s.pending === 0) {
18383 s.pending_out = 0;
18384 }
18385}
18386
18387
18388function flush_block_only(s, last) {

Callers 2

flush_block_onlyFunction · 0.70
deflateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected