| 1 |
class LZXError(Exception): |
| 2 |
pass |
| 3 |
|
| 4 |
class Compressor: |
| 5 |
reset: int |
| 6 |
wbits: int |
| 7 |
blocksize: int |
| 8 |
|
| 9 |
def __init__(self, wbits: int, reset: bool = True) -> None: |
| 10 |
"Compressor objects" |
| 11 |
pass |
| 12 |
|
| 13 |
def compress(self, data: bytes, flush: bool = False) -> tuple[bytes, list[tuple[int, int]]]: |
| 14 |
"Return a string containing data LZX compressed." |
| 15 |
pass |
| 16 |
|
| 17 |
def flush(self) -> tuple[bytes, list[tuple[int, int]]]: |
| 18 |
"Return a string containing any remaining LZX compressed data." |
| 19 |
pass |
| 20 |
|
| 21 |
def init(window: int) -> None: |
| 22 |
"Initialize the LZX decompressor" |
| 23 |
pass |
| 24 |
|
| 25 |
def reset() -> None: |
| 26 |
"Reset the LZX decompressor" |
| 27 |
pass |
| 28 |
|
| 29 |
def decompress(data: bytes, outlen: int) -> bytes: |
| 30 |
"Run the LZX decompressor" |
| 31 |
pass |