Skip to content

Commit 30f3921

Browse files
committed
Add a GzipReader class
1 parent 1c0c601 commit 30f3921

File tree

2 files changed

+757
-0
lines changed

2 files changed

+757
-0
lines changed

src/zlib_ng/zlib_ng.pyi

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
# This file is part of python-zlib-ng which is distributed under the
66
# PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2.
77

8+
import typing
9+
810
MAX_WBITS: int
911
DEFLATED: int
1012
DEF_MEM_LEVEL: int
@@ -77,3 +79,16 @@ class _ZlibDecompressor:
7779
zdict=None): ...
7880

7981
def decompress(self, __data, max_length=-1) -> bytes: ...
82+
83+
class _GzipReader:
84+
def __init__(self, fp: typing.BinaryIO, buffersize: int = 32 * 1024): ...
85+
def readinto(self, obj) -> int: ...
86+
def readable(self) -> bool: ...
87+
def writable(self) -> bool: ...
88+
def seekable(self) -> bool: ...
89+
def tell(self) -> int: ...
90+
def seek(self, offset: int, whence: int): ...
91+
def close(self): ...
92+
def readall(self) -> bytes: ...
93+
def read(self, __size: int): ...
94+
def flush(self): ...

0 commit comments

Comments
 (0)