pub fn decompress_to_vec_with_limit(
input: &[u8],
max_size: usize,
) -> Result<Vec<u8>, TINFLStatus>
Expand description
Decompress the deflate-encoded data in input
to a vector.
The vector is grown to at most max_size
bytes; if the data does not fit in that size,
TINFLStatus::HasMoreOutput
error is returned.
Returns a tuple of the Vec
of decompressed data and the status result.