pub struct InflateState { /* private fields */ }
Expand description

A struct that compbines a decompressor with extra data for streaming decompression.

Implementations§

Create a new state.

Note that this struct is quite large due to internal buffers, and as such storing it on the stack is not recommended.

Parameters

data_format: Determines whether the compressed data is assumed to wrapped with zlib metadata.

Create a new state on the heap.

Parameters

data_format: Determines whether the compressed data is assumed to wrapped with zlib metadata.

Access the innner decompressor.

Return the status of the last call to inflate with this InflateState.

Create a new state using miniz/zlib style window bits parameter.

The decompressor does not support different window sizes. As such, any positive (>0) value will set the zlib header flag, while a negative one will not.

Reset the decompressor without re-allocating memory, using the given data format.

Resets the state according to specified policy.

Trait Implementations§

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.