4 DEFLATED = ... # type: int
\r
5 DEF_MEM_LEVEL = ... # type: int
\r
6 MAX_WBITS = ... # type: int
\r
7 ZLIB_VERSION = ... # type: str
\r
8 Z_BEST_COMPRESSION = ... # type: int
\r
9 Z_BEST_SPEED = ... # type: int
\r
10 Z_DEFAULT_COMPRESSION = ... # type: int
\r
11 Z_DEFAULT_STRATEGY = ... # type: int
\r
12 Z_FILTERED = ... # type: int
\r
13 Z_FINISH = ... # type: int
\r
14 Z_FULL_FLUSH = ... # type: int
\r
15 Z_HUFFMAN_ONLY = ... # type: int
\r
16 Z_NO_FLUSH = ... # type: int
\r
17 Z_SYNC_FLUSH = ... # type: int
\r
18 if sys.version_info >= (3,):
\r
19 DEF_BUF_SIZE = ... # type: int
\r
20 ZLIB_RUNTIME_VERSION = ... # type: str
\r
22 class error(Exception): ...
\r
26 def compress(self, data: bytes) -> bytes: ...
\r
27 def flush(self, mode: int = ...) -> bytes: ...
\r
28 def copy(self) -> _Compress: ...
\r
32 unused_data = ... # type: bytes
\r
33 unconsumed_tail = ... # type: bytes
\r
34 if sys.version_info >= (3,):
\r
35 eof = ... # type: bool
\r
36 def decompress(self, data: bytes, max_length: int = ...) -> bytes: ...
\r
37 def flush(self, length: int = ...) -> bytes: ...
\r
38 def copy(self) -> _Decompress: ...
\r
41 def adler32(data: bytes, value: int = ...) -> int: ...
\r
42 def compress(data: bytes, level: int = ...) -> bytes: ...
\r
43 if sys.version_info >= (3,):
\r
44 def compressobj(level: int = ..., method: int = ..., wbits: int = ...,
\r
45 memLevel: int = ..., strategy: int = ...,
\r
46 zdict: bytes = ...) -> _Compress: ...
\r
48 def compressobj(level: int = ..., method: int = ..., wbits: int = ...,
\r
49 memlevel: int = ..., strategy: int = ...) -> _Compress: ...
\r
50 def crc32(data: bytes, value: int = ...) -> int: ...
\r
51 def decompress(data: bytes, wbits: int = ..., bufsize: int = ...) -> bytes: ...
\r
52 if sys.version_info >= (3,):
\r
53 def decompressobj(wbits: int = ..., zdict: bytes = ...) -> _Decompress: ...
\r
55 def decompressobj(wbits: int = ...) -> _Decompress: ...
\r