Skip to main content

Module compression

Module compression 

Source
Expand description

Compression utilities for Heddle storage.

Provides configurable compression with support for:

  • zstd: High compression ratio, good speed
  • Delta encoding: For similar versions of the same file

Structs§

CompressionConfig
Compression configuration.

Enums§

CompressionError
Compression error type.

Functions§

compress
Compress data with automatic algorithm selection.
decompress
Decompress data based on header.
header_uncompressed_size
Peek at the recorded uncompressed size in a header-prefixed blob, without decompressing the payload. Returns None for short or unprefixed inputs (the caller can then fall back to the file length).
is_compressed
Check if data is compressed (has compression header).