def pc.po

bend-kit-http@0.38.4.0 · http.bend:4639

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

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

Uses (4)

Used by (1)