We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6864a1 commit fafd587Copy full SHA for fafd587
2 files changed
tests/extmod/uzlib_decompio.py
@@ -0,0 +1,19 @@
1
+try:
2
+ import zlib
3
+except ImportError:
4
+ import uzlib as zlib
5
+import uio as io
6
+
7
8
+# Raw DEFLATE bitstream
9
+buf = io.BytesIO(b'\xcbH\xcd\xc9\xc9\x07\x00')
10
+inp = zlib.DecompIO(buf)
11
+print(buf.seek(0, 1))
12
+print(inp.read(1))
13
14
+print(inp.read(2))
15
+print(inp.read())
16
17
18
19
tests/extmod/uzlib_decompio.py.exp
@@ -0,0 +1,9 @@
+0
+b'h'
+2
+b'el'
+b'lo'
+7
+b''
0 commit comments