def parse.bytes

bend-kit-json@0.7.0.0 · json.bend:727

import bend-kit-json@0.7.0.0/json.bend as Json
import Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes

727# One JSON text in UTF-8, with RFC §8.2 surrogate replacement and input-sized depth.
728def parse.bytes(b: Bytes.Bytes) -> Maybe<&1, Val>:
729  Bytes.Bytes{+len, buf} = b
730  runb(Nat.add(Nat.mul(U32.to_nat(len), 4n), 4n), (buf, BValue{0, Nil{}}, 0), len, False{}, len)

Uses (11)

Used by (11)