Struct miniz_oxide::deflate::core::CompressorOxide [−][src]
pub struct CompressorOxide { /* fields omitted */ }
Expand description
Main compression struct.
Implementations
Create a new CompressorOxide
with the given flags.
Notes
This function may be changed to take different parameters in the future.
Get the return status of the previous compress
call with this compressor.
Get the raw compressor flags.
Notes
This function may be deprecated or changed in the future to use more rust-style flags.
Returns whether the compressor is wrapping the data in a zlib format or not.
Reset the state of the compressor, keeping the same parameters.
This avoids re-allocating data.
Set the compression level of the compressor.
Using this to change level after compresson has started is supported.
Notes
The compression strategy will be reset to the default one when this is called.
Set the compression level of the compressor using an integer value.
Using this to change level after compresson has started is supported.
Notes
The compression strategy will be reset to the default one when this is called.
Update the compression settings of the compressor.
Changing the DataFormat
after compression has started will result in
a corrupted stream.
Notes
This function mainly intented for setting the initial settings after e.g creating with
default
or after calling CompressorOxide::reset()
, and behaviour may be changed
to disallow calling it after starting compression in the future.