pub fn compress(data: &[u8], level: CompressionLevel) -> Vec<u8>
Expand description

Compress data using the specified CompressionLevel.

Panic

This function panics if data.len() > u32::max_value() - 400.