//! 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.
/// Size of the buffer of lz77 encoded data. pubconst LZ_CODE_BUF_SIZE: usize = 64 * 1024; /// Size of the output buffer. pubconst OUT_BUF_SIZE: usize = (LZ_CODE_BUF_SIZE * 13) / 10; pubconst LZ_DICT_FULL_SIZE: usize = LZ_DICT_SIZE + MAX_MATCH_LEN - 1 + 1;
/// Size of hash values in the hash chains. pubconst LZ_HASH_BITS: i32 = 15; /// How many bits to shift when updating the current hash value. pubconst LZ_HASH_SHIFT: i32 = (LZ_HASH_BITS + 2) / 3; /// Size of the chained hash tables. pubconst LZ_HASH_SIZE: usize = 1 << LZ_HASH_BITS;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.