Struct miniz_oxide::inflate::stream::InflateState [−][src]
A struct that compbines a decompressor with extra data for streaming decompression.
Implementations
impl InflateState
[src]
pub fn new(data_format: DataFormat) -> InflateState
[src]
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.
pub fn new_boxed(data_format: DataFormat) -> Box<InflateState>
[src]
Create a new state on the heap.
Parameters
data_format
: Determines whether the compressed data is assumed to wrapped with zlib
metadata.
pub fn decompressor(&mut self) -> &mut DecompressorOxide
[src]
Access the innner decompressor.
pub fn last_status(&self) -> TINFLStatus
[src]
Return the status of the last call to inflate
with this InflateState
.
pub fn new_boxed_with_window_bits(window_bits: i32) -> Box<InflateState>
[src]
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.
pub fn reset(&mut self, data_format: DataFormat)
[src]
Reset the decompressor without re-allocating memory, using the given data format.
pub fn reset_as<T: ResetPolicy>(&mut self, policy: T)
[src]
Resets the state according to specified policy.
Trait Implementations
impl Default for InflateState
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,