Module inflate

Source
Expand description

This module contains functionality for decompression.

Modulesยง

core
Streaming decompression functionality.
output_buffer ๐Ÿ”’
stream
Extra streaming decompression functionality.

Structsยง

DecompressError
Struct return when decompress_to_vec functions fail.

Enumsยง

TINFLStatus
Return status codes.

Constantsยง

TINFL_STATUS_ADLER32_MISMATCH ๐Ÿ”’
TINFL_STATUS_BAD_PARAM ๐Ÿ”’
TINFL_STATUS_DONE ๐Ÿ”’
TINFL_STATUS_FAILED ๐Ÿ”’
TINFL_STATUS_FAILED_CANNOT_MAKE_PROGRESS ๐Ÿ”’
TINFL_STATUS_HAS_MORE_OUTPUT ๐Ÿ”’
TINFL_STATUS_NEEDS_MORE_INPUT ๐Ÿ”’

Functionsยง

decompress_error ๐Ÿ”’
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 input to a vector.
decompress_to_vec_inner ๐Ÿ”’
Backend of various to-Vec decompressions.
decompress_to_vec_with_limit
Decompress the deflate-encoded data in input to a vector.
decompress_to_vec_zlib
Decompress the deflate-encoded data (with a zlib wrapper) in input to a vector.
decompress_to_vec_zlib_with_limit
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, the error struct will contain the status TINFLStatus::HasMoreOutput and the data that was decompressed on failure.