def utf8.decode

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

import bend-kit-protobuf@0.2.0.0/protobuf.bend as Protobuf
import 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{}})

Uses (9)

Used by (2)