Packed.packed.chunk.data: def of emerging-ezhttp@0.22.0.0 Import: import emerging-ezhttp@0.22.0.0/src/packed.bend as Packed Lines 64-74 of emerging-ezhttp@0.22.0.0/src/packed.bend: https://jend.leeeet.dev/read.txt?path=emerging-ezhttp@0.22.0.0/src/packed.bend&start_line=64&end_line=74 import Base import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes import emerging-ezhttp@0.22.0.0/src/http.bend as Http # a chunk of n octets from d: its octets must all be there, and a CRLF after # them def packed.chunk.data(b: Bytes.Bytes, +d: U32, +n: Nat, acc: List<&1, Bytes.Bytes>, fits: Bool, go: Bytes.Bytes -> U32 -> List<&1, Bytes.Bytes> -> Parts) -> Parts: match fits: case False{}: Bad{Http.chunk.short()} case True{}: +k = U32.from_nat(n) packed.chunk.ready(packed.text(b, (d + k : U32), 2), d, k, acc, go) Uses (11): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.add https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.from_nat https://jend.leeeet.dev/definition.txt?path=bend-kit-bytes@0.3.3.0/bytes.bend&name=Bytes https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.22.0.0/src/http.bend&name=chunk.short https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.22.0.0/src/packed.bend&name=Parts https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.22.0.0/src/packed.bend&name=packed.chunk.ready https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.22.0.0/src/packed.bend&name=packed.text