tinycompress.lzsswΒΆ
Lempel-Ziv-Storer-Szymanski via Words compression algorithm.
This module implements the LZSSW compression algorithm, a variant of LZSS. The algorithm maintains a ring buffer and uses bit flags to indicate compressed vs uncompressed data.
The compressor parameters can be tuned for different use cases: - Ring buffer size controls how far back to look for matches - Maximum match length affects compression ratio vs processing time - Common byte value can be optimized for specific data types
Attributes
Minimum ring buffer size. |
|
Maximum ring buffer size. |
|
Default uses maximum size. |
|
Minimum match length limit. |
|
Maximum match length limit. |
|
Default match length. |
|
Default byte value used to fill the initial ring buffer. |
Functions
Compresses data using the LZSSW algorithm. |
|
Decompresses LZSSW-compressed data. |
|
Command-line interface for LZSSW compression/decompression. |
|
Opens an LZSSW compressed file. |
Classes
LZSSW compression implementation. |
|
LZSSW decompression implementation. |
|
File-like object for reading/writing LZSSW compressed files. |
Exceptions
Exception raised for LZSSW compression/decompression errors. |