Module zstd::block
[−]
[src]
Methods to compress and decompress individual blocks.
These methods process all the input data at once. It is therefore best used with relatively small blocks (like small network packets).
Structs
Compressor |
Allows to compress multiple blocks of data, re-using the context. |
Decompressor |
Allows to decompress multiple blocks of data, re-using the context. |
Functions
compress |
Compresses a block of data and returns the compressed result. |
compress_to_buffer |
Compresses a single block of data to the given destination buffer. |
decompress |
Decompresses a block of data and returns the decompressed result. |
decompress_to_buffer |
Deompress a single block of data to the given destination buffer. |