def utf8.cont

bend-kit-protobuf@0.2.0.0 · protobuf.bend:709

import bend-kit-protobuf@0.2.0.0/protobuf.bend as Protobuf
import Base

709def utf8.cont(ok: Bool, +need: U32, cp: U32, b: U32, out: String) -> Result<&2, &2, Error, Utf8>:
710  match ok:
711    case False{}:
712      Fail{InvalidUtf8{}}
713    case True{}:
714      Done{utf8.more(U32.is_eq(need, 1), (need - 1 : U32), ((cp << 6n) .|. (b .&. 63) : U32), out)}

Uses (12)

Used by (1)