Function miniz_oxide::deflate::core::compress_to_output
source · pub fn compress_to_output(
d: &mut CompressorOxide,
in_buf: &[u8],
flush: TDEFLFlush,
callback_func: impl FnMut(&[u8]) -> bool
) -> (TDEFLStatus, usize)
Expand description
Main compression function. Callbacks output.
Returns
Returns a tuple containing the current status of the compressor, the current position in the input buffer.
The caller is responsible for ensuring the CallbackFunc
struct will not cause undefined
behaviour.