blob: f544e085fa6d8addc1b7e585793b4c1559cae0a6 (
plain)
1
2
3
4
5
6
7
8
9
10
|
import wasm from "./diplomat-wasm.mjs"
import * as diplomatRuntime from "./diplomat-runtime.js"
export class CodePointRangeIteratorResult {
constructor(underlying) {
this.start = (new Uint32Array(wasm.memory.buffer, underlying, 1))[0];
this.end = (new Uint32Array(wasm.memory.buffer, underlying + 4, 1))[0];
this.done = (new Uint8Array(wasm.memory.buffer, underlying + 8, 1))[0] == 1;
}
}
|