[][src]Module lzzzz::lz4f

LZ4 frame format.

Asynchronous I/O

The async-io feature flag enables asynchronous streaming compressors and decompressors.

lzzzz = { version = "...", features = ["async-io"] }

Structs

AsyncBufReadCompressorfeature="async-io"

The AsyncBufRead-based streaming compressor.

AsyncBufReadDecompressorfeature="async-io"

The AsyncBufRead-based streaming decompressor.

AsyncReadCompressorfeature="async-io"

The AsyncRead-based streaming compressor.

AsyncReadDecompressorfeature="async-io"

The AsyncRead-based streaming decompressor.

AsyncWriteCompressorfeature="async-io"

The AsyncWrite-based stream compressor.

AsyncWriteDecompressorfeature="async-io"

The AsyncWrite-based streaming decompressor.

BufReadCompressor

The BufRead-based streaming compressor.

BufReadDecompressor

The BufRead-based streaming decompressor.

Dictionary

A pre-compiled dictionary for the efficient compression.

FrameInfo

LZ4 Frame parameters.

Preferences

Compression preferences.

PreferencesBuilder

Builds a custom Preferences.

ReadCompressor

The Read-based streaming compressor.

ReadDecompressor

The Read-based streaming decompressor.

WriteCompressor

The Write-based streaming compressor.

WriteDecompressor

The Write-based streaming decompressor.

Enums

AutoFlush

Auto flush mode flag.

BlockChecksum

Block checksum flag.

BlockMode

Block mode flag.

BlockSize

Block size flag.

ContentChecksum

Content checksum flag.

Error

The error type for LZ4F operations.

ErrorKind

A list specifying general categories of LZ4F error.

FavorDecSpeed

Decompression speed mode flag.

FrameType

Frame type flag.

Constants

CLEVEL_DEFAULT

Predefined compression level (0).

CLEVEL_HIGH

Predefined compression level (10).

CLEVEL_MAX

Predefined compression level (12).

Functions

compress

Performs LZ4F compression.

compress_to_vec

Appends a compressed frame to Vec.

decompress_to_vec

Decompresses a LZ4 frame.

max_compressed_size

Calculates the maximum size of the compressed output.

Type Definitions

Result

A specialized Result type for LZ4F operations.