pub fn compress_with_stats(
compressor: &mut Compressor,
data: &[u8],
coder: CoderType,
) -> Result<(Vec<u8>, CompressionStats)>Expand description
Compress data and return both the compressed output and statistics.
This is a convenience function that wraps Compressor::compress with timing.