def utf8.go
import bend-kit-websocket@0.4.0.0/websocket.bend as Websocketimport Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
623def utf8.go(n: Nat, r: Array<U32> & U32, +i: U32, +s: U32) -> Array<U32> & Bool:
624 match n:
625 case 0n:
626 (a, v) = r
627 (a, U32.is_eq((s .&. 255 : U32), 0))
628 case 1n+p:
629 (a, +b) = r
630 +j = (i + 1 : U32)
631 utf8.go(p, Bytes.peek(a, j), j, utf8.next(s, b))