pub struct InflaterManaged { /* private fields */ }
Expand description
The streaming Inflater for deflate64
This struct has big buffer so It’s not recommended to move this struct.
Implementations§
Source§impl InflaterManaged
impl InflaterManaged
Sourcepub fn with_uncompressed_size(uncompressed_size: usize) -> Self
pub fn with_uncompressed_size(uncompressed_size: usize) -> Self
Initializes Inflater with expected uncompressed size.
Sourcepub fn finished(&self) -> bool
pub fn finished(&self) -> bool
Returns true if deflating finished
This also returns true if this inflater is in error state
Sourcepub fn available_output(&self) -> usize
pub fn available_output(&self) -> usize
The count of bytes currently inflater has in internal output buffer
Sourcepub fn inflate(&mut self, input: &[u8], output: &mut [u8]) -> InflateResult
pub fn inflate(&mut self, input: &[u8], output: &mut [u8]) -> InflateResult
Try to decompress from input
to output
.
This will decompress data until output
is full, input
is empty,
the end if the deflate64 stream is hit, or there is error data in the deflate64 stream.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InflaterManaged
impl RefUnwindSafe for InflaterManaged
impl Send for InflaterManaged
impl Sync for InflaterManaged
impl Unpin for InflaterManaged
impl UnwindSafe for InflaterManaged
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