9 lines
358 B
JavaScript
9 lines
358 B
JavaScript
import wasm from "./diplomat-wasm.mjs"
|
|
import * as diplomatRuntime from "./diplomat-runtime.mjs"
|
|
|
|
export class ICU4XDecomposed {
|
|
constructor(underlying) {
|
|
this.first = String.fromCharCode((new Uint32Array(wasm.memory.buffer, underlying, 1))[0]);
|
|
this.second = String.fromCharCode((new Uint32Array(wasm.memory.buffer, underlying + 4, 1))[0]);
|
|
}
|
|
}
|