Function miniz_oxide::inflate::decompress_to_vec_zlib_with_limit
source · pub fn decompress_to_vec_zlib_with_limit(
input: &[u8],
max_size: usize
) -> Result<Vec<u8>, TINFLStatus>
Expand description
Decompress the deflate-encoded data (with a zlib wrapper) 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.