MCPcopy Index your code
hub / github.com/RsyncProject/rsync / _tr_stored_block

Function _tr_stored_block

zlib/trees.c:841–849  ·  view source on GitHub ↗

=========================================================================== * Send a stored block */

Source from the content-addressed store, hash-verified

839 * Send a stored block
840 */
841void ZLIB_INTERNAL _tr_stored_block(deflate_state *s, charf *buf, ulg stored_len, int last)
842{
843 send_bits(s, (STORED_BLOCK<<1)+last, 3); /* send block type */
844#ifdef DEBUG
845 s->compressed_len = (s->compressed_len + 3 + 7) & (ulg)~7L;
846 s->compressed_len += (stored_len + 4) << 3;
847#endif
848 copy_block(s, buf, (unsigned)stored_len, 1); /* with header */
849}
850
851/* ===========================================================================
852 * Flush the bits in the bit buffer to pending output (leaves at most 7 bits)

Callers 2

trees.cFile · 0.85
deflateFunction · 0.85

Calls 2

send_bitsFunction · 0.85
copy_blockFunction · 0.85

Tested by

no test coverage detected