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

Function copy_block

static/word2md/mammoth.browser.js:22881–22898  ·  view source on GitHub ↗
(s, buf, len, header)

Source from the content-addressed store, hash-verified

22879 * one's complement if requested.
22880 */
22881function copy_block(s, buf, len, header)
22882//DeflateState *s;
22883//charf *buf; /* the input data */
22884//unsigned len; /* its length */
22885//int header; /* true if block header must be written */
22886{
22887 bi_windup(s); /* align on byte boundary */
22888
22889 if (header) {
22890 put_short(s, len);
22891 put_short(s, ~len);
22892 }
22893// while (len--) {
22894// put_byte(s, *buf++);
22895// }
22896 utils.arraySet(s.pending_buf, s.window, buf, len, s.pending);
22897 s.pending += len;
22898}
22899
22900/* ===========================================================================
22901 * Compares to subtrees, using the tree depth as tie breaker when

Callers 1

_tr_stored_blockFunction · 0.70

Calls 2

bi_windupFunction · 0.70
put_shortFunction · 0.70

Tested by

no test coverage detected