pub struct LzmaDecoder;Expand description
Decodes raw LZMA streams whose uncompressed size is known up front.
Implementations§
Source§impl LzmaDecoder
impl LzmaDecoder
Sourcepub const PROPERTIES_SIZE: usize = 5
pub const PROPERTIES_SIZE: usize = 5
Size of the properties that precede an LZMA stream: one byte for lc/lp/pb and four for the dictionary size.
Sourcepub fn decode(
properties: &[u8],
input: &[u8],
output: &mut [u8],
preset_dictionary_length: usize,
) -> Result<(), SteamError>
pub fn decode( properties: &[u8], input: &[u8], output: &mut [u8], preset_dictionary_length: usize, ) -> Result<(), SteamError>
Decodes a raw LZMA stream into output, after an optional preset
dictionary at its start.
properties- the 5 property bytes.input- the compressed stream.output- starts with the preset dictionary; the rest receives the uncompressed bytes.preset_dictionary_length- how many bytes at the start ofoutputmatches can refer to before anything is decoded.
Trait Implementations§
Source§impl Clone for LzmaDecoder
impl Clone for LzmaDecoder
impl Copy for LzmaDecoder
Source§impl Debug for LzmaDecoder
impl Debug for LzmaDecoder
Source§impl Default for LzmaDecoder
impl Default for LzmaDecoder
impl Eq for LzmaDecoder
Source§impl PartialEq for LzmaDecoder
impl PartialEq for LzmaDecoder
impl StructuralPartialEq for LzmaDecoder
Auto Trait Implementations§
impl Freeze for LzmaDecoder
impl RefUnwindSafe for LzmaDecoder
impl Send for LzmaDecoder
impl Sync for LzmaDecoder
impl Unpin for LzmaDecoder
impl UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.