pub trait StreamingCompressor {
// Required methods
fn algorithm(&self) -> Algorithm;
fn begin(&mut self) -> Result<()>;
fn compress_chunk(
&mut self,
input: &[u8],
output: &mut [u8],
flush: Flush,
) -> Result<(usize, usize)>;
fn finish(&mut self, output: &mut [u8]) -> Result<usize>;
fn reset(&mut self);
}Expand description
Streaming compression for incremental processing.