pub struct LzmaDecoder { /* private fields */ }
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.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LzmaDecoder
impl RefUnwindSafe for LzmaDecoder
impl Send for LzmaDecoder
impl Sync for LzmaDecoder
impl Unpin for LzmaDecoder
impl UnwindSafe for LzmaDecoder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more