UNPKG

json-as

Version:

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

8 lines (7 loc) 234 B
// @ts-ignore: decorator @inline export function ptrToStr(start: usize, end: usize): string { const size = end - start; const out = __new(size, idof<string>()); memory.copy(out, start, size); return changetype<string>(out); }