Enum xz_embedded_sys::xz_mode [] [src]

#[repr(C)]
pub enum xz_mode { XZ_SINGLE, XZ_PREALLOC, XZ_DYNALLOC, }

Operation mode

It is possible to enable support only for a subset of the above modes at compile time by defining XZ_DEC_SINGLE, XZ_DEC_PREALLOC, or XZ_DEC_DYNALLOC. The xz_dec kernel module is always compiled with support for all operation modes, but the preboot code may be built with fewer features to minimize code size.

Variants

Single-call mode.

This uses less RAM than than multi-call modes, because the LZMA2 dictionary doesn't need to be allocated as part of the decoder state. All required data structures are allocated at initialization, so xz_dec_run() cannot return XZ_MEM_ERROR.

Multi-call mode with preallocated LZMA2 dictionary buffer.

All data structures are allocated at initialization, so xz_dec_run() cannot return XZ_MEM_ERROR.

Multi-call mode.

The LZMA2 dictionary is allocated once the required size has been parsed from the stream headers. If the allocation fails, xz_dec_run() will return XZ_MEM_ERROR.

Trait Implementations

impl Debug for xz_mode
[src]

Formats the value using the given formatter.

impl Clone for xz_mode
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for xz_mode
[src]

impl PartialEq for xz_mode
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.