Module zlib

Source

Constantsยง

DEFAULT_CINFO ๐Ÿ”’
DEFAULT_CM ๐Ÿ”’
DEFAULT_CMF ๐Ÿ”’
FCHECK_DIVISOR ๐Ÿ”’
The 16-bit value consisting of CMF and FLG must be divisible by this to be valid.
MIN_CMF ๐Ÿ”’
_DEFAULT_FDICT ๐Ÿ”’

Functionsยง

add_fcheck ๐Ÿ”’
Generate FCHECK from CMF and FLG (without FCKECH )so that they are correct according to the specification, i.e (CMF*256 + FCHK) % 31 = 0. Returns flg with the FCHKECK bits added (any existing FCHECK bits are ignored).
cmf_from_flags ๐Ÿ”’
header_from_flags
Create a zlib header from the given compression flags. Only level is considered.
header_from_level ๐Ÿ”’
Get the zlib header for the level using the default window size and no dictionary.
zlib_level_from_flags ๐Ÿ”’