Module lz_fear::framed

source ·
Expand description

The LZ4 frame format.

An lz4-compressed file typically consists of a single frame.

The frame format is self-terminating, i.e. it can be embedded without a length prefix. This also allows LZ4 frames to be concatenated back to back.

See CompressionSettings for the features and flexibility that the format offers.

Structs§

  • A builder-style struct that configures compression settings. This is how you compress LZ4 frames. (An LZ4 file usually consists of a single frame.)
  • Wrapper around LZ4FrameReader that implements Read and BufRead.
  • Read an LZ4-compressed frame.

Enums§

Constants§

  • The four magic bytes at the start of every LZ4 frame (little endian).
  • The LZ4 raw format maintains a lookback window of exactly 64KiB.

Functions§

  • Convenience wrapper around LZ4FrameReader that reads everything into a vector and returns it.