def utf8.decode
import bend-kit-protobuf@0.2.0.0/protobuf.bend as Protobufimport Base
import bend-kit-bytes@0.3.3.0/bytes.bend as B
749def utf8.decode(b: B.Bytes) -> Result<&2, &2, Error, String>:
750 B.Bytes{+n, buf} = b
751 utf8.decode.go(U32.to_nat(n), B.Cursor.u8(B.Cursor.new(B.Bytes{n, buf})), Utf8{0, 128, 191, 0, SNil{}})