pub struct Lzma2Stream { /* private fields */ }Expand description
Sans-I/O LZMA2 stream decoder.
Decodes a raw LZMA2 byte stream (no XZ container). Call process() repeatedly
with input/output buffers until Status::StreamEnd is returned.
Implementations§
Source§impl Lzma2Stream
impl Lzma2Stream
Sourcepub fn new(dict_size: u32) -> Self
pub fn new(dict_size: u32) -> Self
Create a new LZMA2 stream decoder with the given dictionary size.
Sourcepub fn is_finished(&self) -> bool
pub fn is_finished(&self) -> bool
Returns true if the LZMA2 stream has been fully decoded.
Sourcepub fn has_output(&self) -> bool
pub fn has_output(&self) -> bool
Returns true if there is decoded output waiting to be flushed.
Auto Trait Implementations§
impl Freeze for Lzma2Stream
impl RefUnwindSafe for Lzma2Stream
impl Send for Lzma2Stream
impl Sync for Lzma2Stream
impl Unpin for Lzma2Stream
impl UnsafeUnpin for Lzma2Stream
impl UnwindSafe for Lzma2Stream
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