def inflate.lengths

gralha-bytes@0.1.0.1 · bytes.bend:323

import gralha-bytes@0.1.0.1/bytes.bend as Bytes
import Base
import gralha-text-scan@0.1.0.1/scan.bend as U

323def inflate.lengths(+remaining: U32, +codes: Huffman, +stream: BitStream, +lengths: Bytes) -> Inflate:
324  U.branch(Inflate, U32.is_eq(remaining, 0), _ => Inflate{stream, lengths},
325    _ => inflate.lengths.next(inflate.length.code(huff.read(codes, stream), remaining, lengths), remaining, bytes.size(lengths), n => input => output => inflate.lengths(n, codes, input, output)))

Uses (11)

Used by (1)