Function miniz_oxide::deflate::core::compress [−][src]
pub fn compress(
d: &mut CompressorOxide,
in_buf: &[u8],
out_buf: &mut [u8],
flush: TDEFLFlush
) -> (TDEFLStatus, usize, usize)
Main compression function. Tries to compress as much as possible from in_buf
and
puts compressed output into out_buf
.
The value of flush
determines if the compressor should attempt to flush all output
and alternatively try to finish the stream.
Should be TDeflflush::Finish
on the final call.
Returns
Returns a tuple containing the current status of the compressor, the current position in the input buffer and the current position in the output buffer.