def next.size

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

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

670def next.size(ok: Bool, +t: U32, +pos: U32, +len: U32, +n: U32, buf: Bytes.Bytes) -> Reader & Next:
671  match ok:
672    case True{}:
673      next.whole(Bytes.fits(len, (pos + 1 : U32), n), t, pos, n, buf)
674    case False{}:
675      (Reader{buf, pos}, Bad{})

Uses (10)

Used by (1)