Crate szip
Expand description
Implementation of the szip 1.11+ compression format (Michael Schindler, 1997-2000).
Modules§
- bit_
model - Binary Indexed Tree (Fenwick Tree) probability model with symbol exclusion.
- model
- Context probability model (
sz_mod4) combining cache, MTF, and full fallback models. - qs_
model - Quasistatic adaptive probability model with periodic frequency rescaling.
- range_
coder - Byte-renormalized arithmetic range encoder and decoder (Schindler, 1998).
- reorder
- Channel reordering and differential (delta) coding for multi-byte datatypes.
- sort_
transform - Context sorting transformations: Order 0 (BWT), Order 4, and general Order N.
Structs§
- Szip
Options - Configuration options for compressing szip streams.
Constants§
- DEFAULT_
BLOCK_ SIZE - Default block size in bytes (approx 1.66 MiB matching
-b17). - DEFAULT_
ORDER - Default context order.
- DEFAULT_
RECORD_ SIZE - Default record size in bytes.
- SZIP_
BLOCK_ MAGIC - Block directory header magic bytes (
"BH"). - SZIP_
GLOBAL_ MAGIC - Global header magic bytes (
"SZ\n\x04").
Functions§
- compress
- Compresses in-memory byte slice using standard szip 1.11+ format.
- compress_
stream - Compresses a stream from
readerintowriterusing standard szip 1.11+ format. - compress_
stream_ options - Compresses a stream from
readerintowriterwith explicit options. - decompress
- Decompresses in-memory byte slice using standard szip 1.11+ format.
- decompress_
stream - Decompresses an szip 1.11+ stream from
readerintowriter.