Crate q_compress
source · [−]Expand description
For crate-level documentation, see either https://crates.io/crates/q_compress or https://github.com/mwlon/quantile-compression/tree/main/q_compress.
Modules
Structs
Wrapper around compressed data, enabling a
Decompressor
to read
bit-level information and maintain its position in the data.
Wrapper around a Vec<usize>
with a specific number of bits.
Builds compressed data, enabling a Compressor
to
write bit-level information and ultimately output a Vec<u8>
.
The metadata of a .qco file chunk.
Converts vectors of numbers into compressed bytes.
All the settings you can specify about compression.
A whole chunk of decompressed data - both the metadata and the numbers it contained.
Converts compressed bytes into Flags
, ChunkMetadata
,
and vectors of numbers.
All the settings you can specify about decompression.
The configuration stored in a .qco file’s header.
A pairing of a Huffman code with a numerical range.
Enums
A low-level, stateful way to decompress small batches of numbers at a time.
A wrapper for prefixes in the two cases cases: delta encoded or not.
Functions
Automatically makes an educated guess for the best compression
configuration, based on nums
and compression_level
,
then compresses the numbers to bytes.
Automatically makes an educated guess for the best compression
configuration, based on nums
and compression_level
.
Automatically makes an educated guess for the best decompression configuration, then decompresses the bytes into numbers.