Constant weezl::STREAM_BUF_SIZE

source ยท
pub(crate) const STREAM_BUF_SIZE: usize = _; // 16_777_216usize
Expand description

A default buffer size for encoding/decoding buffer.

Note that this is larger than the default size for buffers (usually 4K) since each code word can expand to multiple bytes. Expanding one buffer would yield multiple and require a costly break in the decoding loop. Note that the decoded size can be up to quadratic in code block.