def zlib

bend-kit-zlib@0.5.1.0 · zlib.bend:1013

import bend-kit-zlib@0.5.1.0/zlib.bend as Zlib
import Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
import bend-kit-hash@0.3.0.2/hash.bend as Hash

1013# RFC 1950: CMF 0x78 (32 KiB window), FLG 0x01 (fastest), then DEFLATE, then Adler-32, big-endian.
1014def zlib(b: Bytes.Bytes) -> Bytes.Bytes:
1015  zl.put(Hash.adler32(b))

Uses (3)

Used by (0)

No other definition uses this definition.