Skip to main content

Module lz4

Module lz4 

Source
Expand description

Bounded LZ4 block compression for byte columns.

Frames contain a declared total, block size, block count, a length table, and independently compressed blocks. Decoding validates all framing before allocation and each LZ4 block before extending the result.

Structs§

Lz4Decoder
Lz4Encoder
Streaming LZ4 encoder. Accumulates data and compresses on finish().

Functions§

decode
Decompress LZ4 block-compressed bytes back to raw data.
decode_block
Decompress a single block by index (for random access).
encode
Compress raw bytes using LZ4 block compression.
encode_with_block_size
Compress with a custom block size (useful for testing or tuning).