def rd.cut.if

bend-kit-runner@0.13.0.1 · runner.bend:683

import bend-kit-runner@0.13.0.1/runner.bend as Runner
import Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes

683def rd.cut.if(ok: Bool, b: Bytes.Bytes, +at: U32, +n: U32) -> Maybe<&1, Rd & Bytes.Bytes>:
684  match ok:
685    case False{}:
686      None{}
687    case True{}:
688      rd.cut.got(at, n, Bytes.slice(b, at, n))

Uses (8)

Used by (1)