1 from array import array
8 Z_BEST_COMPRESSION: int
10 Z_DEFAULT_COMPRESSION: int
11 Z_DEFAULT_STRATEGY: int
21 ZLIB_RUNTIME_VERSION: str
23 class error(Exception): ...
26 def compress(self, data: bytes) -> bytes: ...
27 def flush(self, mode: int = ...) -> bytes: ...
28 def copy(self) -> _Compress: ...
32 unconsumed_tail: bytes
34 def decompress(self, data: bytes, max_length: int = ...) -> bytes: ...
35 def flush(self, length: int = ...) -> bytes: ...
36 def copy(self) -> _Decompress: ...
38 def adler32(__data: bytes, __value: int = ...) -> int: ...
39 def compress(__data: bytes, level: int = ...) -> bytes: ...
41 level: int = ..., method: int = ..., wbits: int = ..., memLevel: int = ..., strategy: int = ..., zdict: bytes | None = ...
43 def crc32(__data: array[Any] | bytes, __value: int = ...) -> int: ...
44 def decompress(__data: bytes, wbits: int = ..., bufsize: int = ...) -> bytes: ...
45 def decompressobj(wbits: int = ..., zdict: bytes = ...) -> _Decompress: ...