def pc.po

bend-kit-http@0.38.5.0 · http.bend:4643

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

4643# A body piece, or none when empty: more reads the next piece, and not more is the end.
4644def pc.po(more: Bool, empty: Bool, b: Bytes.Bytes) -> Po:
4645  match empty:
4646    case True{}:
4647      Bool.pick(Po, more, PoNone{}, PoEnd{})
4648    case False{}:
4649      PoPiece{b}

Uses (4)

Used by (1)