pub struct DecompressorOxide { /* private fields */ }
Expand description
Main decompression struct.
Implementations§
Source§impl DecompressorOxide
impl DecompressorOxide
Sourcepub fn new() -> DecompressorOxide
pub fn new() -> DecompressorOxide
Create a new tinfl_decompressor with all fields set to 0.
Sourcepub fn adler32(&self) -> Option<u32>
pub fn adler32(&self) -> Option<u32>
Returns the adler32 checksum of the currently decompressed data. Note: Will return Some(1) if decompressing zlib but ignoring adler32.
Sourcepub fn adler32_header(&self) -> Option<u32>
pub fn adler32_header(&self) -> Option<u32>
Returns the adler32 that was read from the zlib header if it exists.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DecompressorOxide
impl RefUnwindSafe for DecompressorOxide
impl Send for DecompressorOxide
impl Sync for DecompressorOxide
impl Unpin for DecompressorOxide
impl UnwindSafe for DecompressorOxide
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