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§
- Chunk
Info - 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).
- Chunked
Archive - In-memory representation of a compressed chunked archive.
- Chunked
Decompressor - Streaming decompressor for chunked archives. Example:
- Compressed
Chunk - In-memory representation of a compressed chunk.
- Decoded
Archive - Validated information from decoding an archive.
Enums§
- Chunked
Archive Error - 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).
- Chunked
Archive Options - Options for constructing a chunked archive.
- Compression
Algorithm - The compression algorithm used to compress the chunks.
- Compressor
- A compressor that is capable of compressing chunks of a chunked-compression archive.
- Decompressor
- A decompressor that is capable of decompressing chunks of a compressed archive.
- Thread
Local Compressor - A compressor that uses thread-local storage to avoid reallocation of large state objects.
- Thread
Local Decompressor - A decompressor that uses thread-local storage to avoid reallocation of large state objects.
Functions§
- decode_
archive - Decodes a chunked archive header. Returns a
DecodedArchiveand any remaining bytes that are part of the chunk data. ReturnsOk(None)ifdatais not large enough to decode the archive header & seek table.