Struct lzma_rs::decompress::raw::LzmaDecoder
source · pub struct LzmaDecoder { /* private fields */ }
Available on
raw_decoder
only.Expand description
Raw decoder for LZMA.
Implementations§
source§impl LzmaDecoder
impl LzmaDecoder
sourcepub fn new(params: LzmaParams, memlimit: Option<usize>) -> Result<LzmaDecoder>
pub fn new(params: LzmaParams, memlimit: Option<usize>) -> Result<LzmaDecoder>
Creates a new object ready for decompressing data that it’s given for the input dict size, expected unpacked data size, and memory limit for the internal buffer.
sourcepub fn reset(&mut self, unpacked_size: Option<Option<u64>>)
pub fn reset(&mut self, unpacked_size: Option<Option<u64>>)
Performs the equivalent of replacing this decompression state with a freshly allocated copy.
Because the decoder state is reset, the unpacked size may optionally be re-specified. If None
is given, the previous unpacked size that the decoder was initialized with remains unchanged.
This function may not allocate memory and will attempt to reuse any previously allocated resources.