Struct miniz_oxide::inflate::stream::InflateState [−][src]
pub struct InflateState { /* fields omitted */ }
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.