compress

Function compress 

Source
pub fn compress(blob: &[u8], bomb_limit: usize) -> Option<Vec<u8>>
👎Deprecated: Will be removed after June 2026. Use compress_strongly, compress_weakly or compress_with_level instead
Expand description

Compress a blob who’s size is limited by bomb_limit.

If the blob’s size is over the bomb limit, this will not compress the blob, as the decoder will not be able to be able to differentiate it from a compression bomb.