def bstr.valid

bend-kit-cbor@0.3.0.0 · cbor.bend:515

import bend-kit-cbor@0.3.0.0/cbor.bend as Cbor
import Base

515def bstr.valid(text: Bool, a: Array<U32>, +i: U32, +end: U32) -> Array<U32> & Bool:
516  match text:
517    case True{}:
518      utf8.check(a, i, end)
519    case False{}:
520      (a, True{})

Uses (6)

Used by (1)