pub struct Decompress(/* private fields */);Available on crate feature
zlib only.Expand description
A type to hold all state needed for decompressing a ZLIB encoded stream.
Implementations§
Source§impl Decompress
impl Decompress
Sourcepub fn total_out(&self) -> u64
pub fn total_out(&self) -> u64
The amount of decompressed bytes that have been written to the output thus far.
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new instance. Note that it allocates in various ways and thus should be re-used.
Sourcepub fn decompress(
&mut self,
input: &[u8],
output: &mut [u8],
flush: FlushDecompress,
) -> Result<Status, DecompressError>
pub fn decompress( &mut self, input: &[u8], output: &mut [u8], flush: FlushDecompress, ) -> Result<Status, DecompressError>
Decompress input and write all decompressed bytes into output, with flush defining some details about this.
Trait Implementations§
Source§impl Default for Decompress
impl Default for Decompress
Source§impl Drop for Decompress
impl Drop for Decompress
impl Send for Decompress
impl Sync for Decompress
Auto Trait Implementations§
impl Freeze for Decompress
impl RefUnwindSafe for Decompress
impl Unpin for Decompress
impl UnwindSafe for Decompress
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