pub struct LzmaDecoder { /* private fields */ }
Available on crate feature
lzma
only.Expand description
Lzma decoding stream
Implementations§
Source§impl LzmaDecoder
impl LzmaDecoder
pub fn new() -> Self
pub fn with_memlimit(memlimit: u64) -> Self
Trait Implementations§
Source§impl Debug for LzmaDecoder
impl Debug for LzmaDecoder
Source§impl Decode for LzmaDecoder
impl Decode for LzmaDecoder
Source§fn reinit(&mut self) -> Result<()>
fn reinit(&mut self) -> Result<()>
Reinitializes this decoder ready to decode a new member/frame of data.
Source§fn decode(
&mut self,
input: &mut PartialBuffer<impl AsRef<[u8]>>,
output: &mut PartialBuffer<impl AsRef<[u8]> + AsMut<[u8]>>,
) -> Result<bool>
fn decode( &mut self, input: &mut PartialBuffer<impl AsRef<[u8]>>, output: &mut PartialBuffer<impl AsRef<[u8]> + AsMut<[u8]>>, ) -> Result<bool>
Returns whether the end of the stream has been read
Source§impl Default for LzmaDecoder
impl Default for LzmaDecoder
Source§impl From<Xz2Decoder> for LzmaDecoder
impl From<Xz2Decoder> for LzmaDecoder
Source§fn from(inner: Xz2Decoder) -> Self
fn from(inner: Xz2Decoder) -> Self
Converts to this type from the input type.
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