Crate szip

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§

SzipOptions
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 reader into writer using standard szip 1.11+ format.
compress_stream_options
Compresses a stream from reader into writer with explicit options.
decompress
Decompresses in-memory byte slice using standard szip 1.11+ format.
decompress_stream
Decompresses an szip 1.11+ stream from reader into writer.