pub fn create_comp_flags_from_zip_params(
    level: i32,
    window_bits: i32,
    strategy: i32
) -> u32
Expand description

Create a set of compression flags using parameters used by zlib and other compressors. Mainly intended for use with transition from c libraries as it deals with raw integers.

Parameters

level determines compression level. Clamped to maximum of 10. Negative values result in CompressionLevel::DefaultLevel. window_bits: Above 0, wraps the stream in a zlib wrapper, 0 or negative for a raw deflate stream. strategy: Sets the strategy if this conforms to any of the values in CompressionStrategy.

Notes

This function may be removed or moved to the miniz_oxide_c_api in the future.