Enum lzxd::WindowSize [−][src]
#[repr(u32)]
pub enum WindowSize {
KB32,
KB64,
KB128,
KB256,
KB512,
MB1,
MB2,
MB4,
MB8,
MB16,
MB32,
}
Expand description
The window size is not stored in the compressed data stream and must be known before decoding begins.
The window size should be the smallest power of two between 2^17 and 2^25 that is greater than or equal to the sum of the size of the reference data rounded up to a multiple of 32_768 and the size of the subject data. However, some implementations also seem to support a window size of less than 2^17, and this one is no exception.
Variants
Window size of 32 KB (2^15 bytes).
Window size of 64 KB (2^16 bytes).
Window size of 128 KB (2^17 bytes).
Window size of 256 KB (2^18 bytes).
Window size of 512 KB (2^19 bytes).
Window size of 1 MB (2^20 bytes).
Window size of 2 MB (2^21 bytes).
Window size of 4 MB (2^22 bytes).
Window size of 8 MB (2^23 bytes).
Window size of 16 MB (2^24 bytes).
Window size of 32 MB (2^25 bytes).
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for WindowSize
impl Send for WindowSize
impl Sync for WindowSize
impl Unpin for WindowSize
impl UnwindSafe for WindowSize
Blanket Implementations
Mutably borrows from an owned value. Read more