Module lz4_flex::block[][src]

Expand description

Enums

CompressError
DecompressError

An error representing invalid compressed data.

Functions

compress

Compress all bytes of input.

compress_into

Compress all bytes of input into output. The method chooses an appropriate hashtable to lookup duplicates and calls compress_into_with_table. output should be preallocated with a size of get_maximum_output_size.

compress_into_with_dict

Compress all bytes of input into output. The method chooses an appropriate hashtable to lookup duplicates and calls compress_into_with_table. output should be preallocated with a size of get_maximum_output_size.

compress_prepend_size

Compress all bytes of input into output. The uncompressed size will be prepended as a little endian u32. Can be used in conjunction with decompress_size_prepended

compress_prepend_size_with_dict

Compress all bytes of input into output. The uncompressed size will be prepended as a little endian u32. Can be used in conjunction with decompress_size_prepended_with_dict

compress_with_dict

Compress all bytes of input with an external dictionary.

decompress

Decompress all bytes of input into a new vec.

decompress_into

Decompress all bytes of input into output. output should be preallocated with a size of of the uncompressed data.

decompress_into_with_dict

Decompress all bytes of input into output.

decompress_size_prepended

Decompress all bytes of input into a new vec. The first 4 bytes are the uncompressed size in litte endian. Can be used in conjunction with compress_prepend_size

decompress_size_prepended_with_dict

Decompress all bytes of input into a new vec. The first 4 bytes are the uncompressed size in little endian. Can be used in conjunction with compress_prepend_size_with_dict

decompress_with_dict

Decompress all bytes of input into a new vec.

get_maximum_output_size

Returns the maximum output size of the compressed data. Can be used to preallocate capacity on the output vector