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

KB32

Window size of 32 KB (2^15 bytes).

KB64

Window size of 64 KB (2^16 bytes).

KB128

Window size of 128 KB (2^17 bytes).

KB256

Window size of 256 KB (2^18 bytes).

KB512

Window size of 512 KB (2^19 bytes).

MB1

Window size of 1 MB (2^20 bytes).

MB2

Window size of 2 MB (2^21 bytes).

MB4

Window size of 4 MB (2^22 bytes).

MB8

Window size of 8 MB (2^23 bytes).

MB16

Window size of 16 MB (2^24 bytes).

MB32

Window size of 32 MB (2^25 bytes).

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.