[−][src]Function miniz_oxide_c_api::lib_oxide::mz_deflate_init2_oxide
pub fn mz_deflate_init2_oxide(
stream_oxide: &mut StreamOxide<tdefl_compressor>,
level: c_int,
method: c_int,
window_bits: c_int,
mem_level: c_int,
strategy: c_int
) -> MZResult
Initialize the compressor with the requested parameters.
Params
stream_oxide: The stream to be initialized.
level: Compression level (0-10).
method: Compression method. Only MZ_DEFLATED
is accepted.
window_bits: Number of bits used to represent the compression sliding window.
Only MZ_DEFAULT_WINDOW_BITS
is currently supported.
A negative value, i.e -MZ_DEFAULT_WINDOW_BITS
indicates that the stream
should be wrapped in a zlib wrapper.
mem_level: Currently unused. Only values from 1 to and including 9 are accepted.
strategy: Compression strategy. See deflate::CompressionStrategy
for accepted options.
The default, which is used in most cases, is 0.