Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RT-Thread/env-windows
/ zlib_encode
Function
zlib_encode
tools/python-3.11.9-amd64/Lib/encodings/zlib_codec.py:13–15 ·
view source on GitHub ↗
(input, errors='strict')
Source
from the content-addressed store, hash-verified
11
### Codec APIs
12
13
def
zlib_encode(input, errors=
'strict'
):
14
assert errors ==
'strict'
15
return
(zlib.compress(input), len(input))
16
17
def
zlib_decode(input, errors=
'strict'
):
18
assert errors ==
'strict'
Callers
1
encode
Method · 0.85
Calls
1
compress
Method · 0.80
Tested by
no test coverage detected