()
| 14 | |
| 15 | let cachegetUint8Memory = null; |
| 16 | function getUint8Memory() { |
| 17 | if (cachegetUint8Memory === null || cachegetUint8Memory.buffer !== wasm.wasi.memory.buffer) { |
| 18 | cachegetUint8Memory = new Uint8Array(wasm.wasi.memory.buffer); |
| 19 | } |
| 20 | return cachegetUint8Memory; |
| 21 | } |
| 22 | |
| 23 | function getStringFromWasm(ptr, len) { |
| 24 | return cachedTextDecoder.decode(getUint8Memory().subarray(ptr, ptr + len)); |
no outgoing calls
no test coverage detected