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

Function _tr_stored_block

static/word2md/mammoth.browser.js:23380–23388  ·  view source on GitHub ↗
(s, buf, stored_len, last)

Source from the content-addressed store, hash-verified

23378 * Send a stored block
23379 */
23380function _tr_stored_block(s, buf, stored_len, last)
23381//DeflateState *s;
23382//charf *buf; /* input block */
23383//ulg stored_len; /* length of input block */
23384//int last; /* one if this is the last block for a file */
23385{
23386 send_bits(s, (STORED_BLOCK << 1) + (last ? 1 : 0), 3); /* send block type */
23387 copy_block(s, buf, stored_len, true); /* with header */
23388}
23389
23390
23391/* ===========================================================================

Callers 1

_tr_flush_blockFunction · 0.70

Calls 2

send_bitsFunction · 0.70
copy_blockFunction · 0.70

Tested by

no test coverage detected