Function zstd_safe::decompress

source ·
pub fn decompress<C: WriteBuf + ?Sized>(dst: &mut C, src: &[u8]) -> SafeResult
Expand description

Wraps the ZSTD_decompress function.

This is a one-step decompression (not streaming).

You will need to make sure dst is large enough to store all the decompressed content, or an error will be returned.

If decompression was a success, the number of bytes written will be returned.