Struct InflateState
struct InflateState { ... }
A struct that compbines a decompressor with extra data for streaming decompression.
Implementations
impl InflateState
fn new(data_format: DataFormat) -> InflateStateCreate 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.fn new_boxed(data_format: DataFormat) -> Box<InflateState>Create a new state on the heap.
Parameters
data_format: Determines whether the compressed data is assumed to wrapped with zlib metadata.fn decompressor(self: &mut Self) -> &mut DecompressorOxideAccess the innner decompressor.
const fn last_status(self: &Self) -> TINFLStatusReturn the status of the last call to
inflatewith thisInflateState.fn new_boxed_with_window_bits(window_bits: i32) -> Box<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.
fn reset(self: &mut Self, data_format: DataFormat)Reset the decompressor without re-allocating memory, using the given data format.
fn reset_as<T: ResetPolicy>(self: &mut Self, policy: T)Resets the state according to specified policy.
impl Clone for InflateState
fn clone(self: &Self) -> InflateState
impl Default for InflateState
fn default() -> Self
impl Freeze for InflateState
impl RefUnwindSafe for InflateState
impl Send for InflateState
impl Sync for InflateState
impl Unpin for InflateState
impl UnsafeUnpin for InflateState
impl UnwindSafe for InflateState
impl<T> Any for InflateState
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for InflateState
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for InflateState
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for InflateState
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for InflateState
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for InflateState
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T, U> Into for InflateState
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for InflateState
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for InflateState
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>