UNPKG

json-as

Version:

The only JSON library you'll need for AssemblyScript. SIMD enabled

8 lines (6 loc) 238 B
import { JSON } from "../.."; import { ptrToStr } from "../../util/ptrToStr"; // @ts-ignore: inline @inline export function deserializeRaw(srcStart: usize, srcEnd: usize): JSON.Raw { return JSON.Raw.from(ptrToStr(srcStart, srcEnd)); }