pub fn deflate(
    compressor: &mut CompressorOxide,
    input: &[u8],
    output: &mut [u8],
    flush: MZFlush
) -> StreamResult
Expand description

Try to compress from input to output with the given Compressor

§Errors

Returns MZError::Buf If the size of the output slice is empty or no progress was made due to lack of expected input data or called after the compression was finished without MZFlush::Finish.

Returns MZError::Param if the compressor parameters are set wrong.