Skip to main content

zstd_encode

Function zstd_encode 

Source
pub fn zstd_encode(bytes: &[u8]) -> Result<Vec<u8>>
Expand description

Compress with zstd at DEFAULT_ZSTD_LEVEL. Returns the compressed bytes ready to write as the section payload.