Function miniz_oxide::inflate::decompress_to_vec
source · pub fn decompress_to_vec(input: &[u8]) -> Result<Vec<u8>, DecompressError>
Expand description
Decompress the deflate-encoded data in input
to a vector.
NOTE: This function will not bound the output, so if the output is large enough it can result in an out of memory error. It is therefore suggested to not use this for anything other than test programs, use the functions with a specified limit, or ideally streaming decompression via the flate2 library instead.
Returns a Result
containing the Vec
of decompressed data on success, and a struct containing the status and so far decompressed data if any on failure.