deflate64

Struct InflaterManaged

Source
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

Source

pub fn new() -> Self

Initializes Inflater

Source

pub fn with_uncompressed_size(uncompressed_size: usize) -> Self

Initializes Inflater with expected uncompressed size.

Source

pub fn finished(&self) -> bool

Returns true if deflating finished

This also returns true if this inflater is in error state

Source

pub fn errored(&self) -> bool

Returns true if this inflater is in error state

Source

pub fn available_output(&self) -> usize

The count of bytes currently inflater has in internal output buffer

Source

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§

Source§

impl Debug for InflaterManaged

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.