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§
- Compression
Config - Compression configuration.
Enums§
- Compression
Error - 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
Nonefor short or unprefixed inputs (the caller can then fall back to the file length). - is_
compressed - Check if data is compressed (has compression header).