def stream.pc.of

bend-kit-http@0.38.2.0 · http.bend:4683

import bend-kit-http@0.38.2.0/http.bend as Http
import Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes

4683# pc.of, and whether bytes came past the end of the body.
4684def stream.pc.of(bf: Bf) -> Pc & Bool:
4685  Bf{st, parts, rest} = bf
4686  Bytes.Bytes{+len, buf} = rest
4687  (pc.fed.of(rb.body(parts), st), Bool.not(U32.is_zero(len)))

Uses (10)

Used by (1)