Function zstd_safe::decompression_margin
source ยท pub fn decompression_margin(compressed_data: &[u8]) -> Result<usize, ErrorCode>
Available on crate feature
experimental
only.Expand description
Returns the minimum extra space when output and input buffer overlap.
When using in-place decompression, the output buffer must be at least this much bigger (in bytes) than the input buffer. The extra space must be at the front of the output buffer (the input buffer must be at the end of the output buffer).