Module inflate
This module contains functionality for decompression.
Modules
Structs
- DecompressError Struct return when decompress_to_vec functions fail.
Enums
- TINFLStatus Return status codes.
Functions
- decompress_slice_iter_to_slice Decompress one or more source slices from an iterator into the output slice.
-
decompress_to_vec
Decompress the deflate-encoded data in
inputto a vector. -
decompress_to_vec_with_limit
Decompress the deflate-encoded data in
inputto a vector. -
decompress_to_vec_zlib
Decompress the deflate-encoded data (with a zlib wrapper) in
inputto a vector. -
decompress_to_vec_zlib_with_limit
Decompress the deflate-encoded data (with a zlib wrapper) in
inputto a vector. The vector is grown to at mostmax_sizebytes; if the data does not fit in that size, the error [struct][DecompressError] will contain the statusTINFLStatus::HasMoreOutputand the data that was decompressed on failure.