pub fn compress(src: &[u8], dst: &mut [u8]) -> Result<usize, String>
Expand description
Compress the bytes in src
into dst
. dst
must be big enough to
hold the maximum compressed size of the bytes in src
.
If there was a problem compressing src
, an error is returned.