Skip to main content

compress

Function compress 

Source
pub fn compress(src: &[u8], level: i32) -> Result<Vec<u8>, Error>
Expand description

ZSTD_compress: one-shot frame compression with the simple-API defaults (contentSize known and flagged, no checksum, no dictionary).

Bit-exact with C libzstd 1.5.7 for the supported scope (see module docs); unsupported configurations return Error::Encode rather than diverging.