Struct miniz_oxide::inflate::stream::InflateState
source · pub struct InflateState { /* private fields */ }
Expand description
A struct that compbines a decompressor with extra data for streaming decompression.
Implementations§
source§impl InflateState
impl InflateState
sourcepub fn new(data_format: DataFormat) -> InflateState
pub fn new(data_format: DataFormat) -> InflateState
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.
sourcepub fn decompressor(&mut self) -> &mut DecompressorOxide
pub fn decompressor(&mut self) -> &mut DecompressorOxide
Access the innner decompressor.
sourcepub const fn last_status(&self) -> TINFLStatus
pub const fn last_status(&self) -> TINFLStatus
Return the status of the last call to inflate
with this InflateState
.
sourcepub fn reset(&mut self, data_format: DataFormat)
pub fn reset(&mut self, data_format: DataFormat)
Reset the decompressor without re-allocating memory, using the given data format.
sourcepub fn reset_as<T: ResetPolicy>(&mut self, policy: T)
pub fn reset_as<T: ResetPolicy>(&mut self, policy: T)
Resets the state according to specified policy.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for InflateState
impl Send for InflateState
impl Sync for InflateState
impl Unpin for InflateState
impl UnwindSafe for InflateState
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more