Skip to main content

Module compression

Module compression 

Source
Expand description

Compression algorithms for save data: RLE, LZ4-style, Huffman, and delta encoding.

Compressor::compress_auto tries every algorithm and picks the smallest output, storing the result in a self-describing CompressedBlock.

Structs§

CompressedBlock
A self-describing compressed block.
Compressor
High-level compressor: tries every algorithm and picks the smallest result.
DeltaDecoder
Delta decoder.
DeltaEncoder
Delta-encode sorted integer arrays then apply RLE on the deltas.
HuffmanDecoder
Canonical Huffman decoder.
HuffmanEncoder
Canonical Huffman encoder.
Lz4Decoder
LZ4-style block decompressor.
Lz4Encoder
LZ4-style block compressor using a 4-byte hash chain.
RunLengthEncoder
Byte-level run-length encoding.

Enums§

CompressionAlgorithm
Which compression algorithm was used to produce a CompressedBlock.