def libz.inflate

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

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

1057# gzip, zlib, or raw DEFLATE data through libz, selected from the first two bytes. Every gzip member is decoded in turn, as gzip -d does.
1058# Each decoder fails with EFBIG when the output passes max bytes, and ENOENT without its library.
1059def libz.inflate(max: U32, b: Bytes.Bytes) -> IO(Result<&1, &1, U32 & String, Bytes.Bytes>):
1060  words.run(~inflate.words, max, b)

Uses (8)

Used by (1)