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

Function _tr_stored_block

Picviewer CE+/dist.user.js:11398–11406  ·  view source on GitHub ↗
(s, buf, stored_len, last)

Source from the content-addressed store, hash-verified

11396 * Send a stored block
11397 */
11398function _tr_stored_block(s, buf, stored_len, last)
11399//DeflateState *s;
11400//charf *buf; /* input block */
11401//ulg stored_len; /* length of input block */
11402//int last; /* one if this is the last block for a file */
11403{
11404 send_bits(s, (STORED_BLOCK << 1) + (last ? 1 : 0), 3); /* send block type */
11405 copy_block(s, buf, stored_len, true); /* with header */
11406}
11407
11408
11409/* ===========================================================================

Callers 1

_tr_flush_blockFunction · 0.70

Calls 2

send_bitsFunction · 0.70
copy_blockFunction · 0.70

Tested by

no test coverage detected