def next.whole

bend-kit-postgres@0.3.0.0 · codec.bend:663

import bend-kit-postgres@0.3.0.0/codec.bend as Codec
import Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes

663def next.whole(ok: Bool, +t: U32, +pos: U32, +n: U32, buf: Bytes.Bytes) -> Reader & Next:
664  match ok:
665    case True{}:
666      next.body(pos, back(t, t, Cur{buf, (pos + 5 : U32), (pos + 1 + n : U32), True{}}))
667    case False{}:
668      (Reader{buf, pos}, Want{})

Uses (11)

Used by (1)