decompress¶
- tinycompress.lzssw.decompress(data, ringsize=4096, maxmatchlen=16, commonbyte=32)[source]¶
Decompresses LZSSW-compressed data.
This is a convenience function that creates a decompressor with specified parameters, decompresses the data, and returns the result. The parameters must match those used during compression.
- Parameters:
data (
Union[bytes,bytearray,memoryview,Iterable[int]]) – LZSSW-compressed data to decompress.ringsize (
int) – Size of the ring buffer, must match compression setting.maxmatchlen (
int) – Maximum length of matched sequences, must match compression.commonbyte (
int) – Value used to fill the initial ring buffer, must match compression.
- Returns:
Decompressed data as bytes.
- Raises:
LZSSWException – If any parameters are out of their valid ranges.