pub fn compress_to_slice(
src: &[u8],
dst: &mut [u8],
level: i32,
) -> Result<usize, Error>Expand description
Compresses into dst, returning the compressed size; dst of
compress_bound(src.len()) bytes is always enough.
ยงErrors
Error::OutputTooSmall if dst is too
small, or as compress.