MCPcopy Create free account
hub / github.com/tdewolff/canvas / loadString

Method loadString

examples/html-canvas/wasm_exec.js:205–209  ·  view source on GitHub ↗
(addr)

Source from the content-addressed store, hash-verified

203 }
204
205 const loadString = (addr) => {
206 const saddr = getInt64(addr + 0);
207 const len = getInt64(addr + 8);
208 return decoder.decode(new DataView(this._inst.exports.mem.buffer, saddr, len));
209 }
210
211 const timeOrigin = Date.now() - performance.now();
212 this.importObject = {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected