Module buffer

Source
Expand description

Buffer wrappers implementing default so we can allocate the buffers with Box::default() to avoid stack copies. Box::new() doesn’t at the moment, and using a vec means we would lose static length info.

Structs§

HashBuffers
LocalBuf

Constants§

LZ_CODE_BUF_MASK
LZ_CODE_BUF_SIZE
Size of the buffer of lz77 encoded data.
LZ_DICT_FULL_SIZE
LZ_HASH_BITS
Size of hash values in the hash chains.
LZ_HASH_SHIFT
How many bits to shift when updating the current hash value.
LZ_HASH_SIZE
Size of the chained hash tables.
OUT_BUF_SIZE
Size of the output buffer.

Functions§

update_hash