Module compression

Source
Expand description

Implementation of chunked-compression library in Rust. Archives can be created by making a new ChunkedArchive and serializing/writing it. An archive’s header can be verified and seek table decoded using decode_archive.

Structs§

ChunkInfo
Validated chunk information from an archive. Compressed ranges are relative to the start of compressed data (i.e. they start after the header and seek table).
ChunkedArchive
In-memory representation of a compressed chunked archive.
ChunkedDecompressor
Streaming decompressor for chunked archives. Example:
CompressedChunk
In-memory representation of a compressed chunk.

Enums§

ChunkedArchiveError
Validated chunk information from an archive. Compressed ranges are relative to the start of compressed data (i.e. they start after the header and seek table).

Functions§

decode_archive
Decode a chunked archive header. Returns validated seek table and start of chunk data. Ranges in resulting chunks are relative to start of returned slice. Returns Ok(None) if data is not large enough to decode the archive header & seek table.