MCPcopy Create free account
hub / github.com/csound/csound / passArray8ToWasm

Function passArray8ToWasm

wasm/browser/script/polyfilled-transformer.js:41–46  ·  view source on GitHub ↗
(arg)

Source from the content-addressed store, hash-verified

39let WASM_VECTOR_LEN = 0;
40
41function passArray8ToWasm(arg) {
42 const ptr = wasm.exports.__wbindgen_malloc(arg.length * 1);
43 getUint8Memory().set(arg, ptr / 1);
44 WASM_VECTOR_LEN = arg.length;
45 return ptr;
46}
47
48function getArrayU8FromWasm(ptr, len) {
49 return getUint8Memory().subarray(ptr / 1, ptr / 1 + len);

Callers 1

lowerI64ImportsFunction · 0.85

Calls 1

getUint8MemoryFunction · 0.85

Tested by

no test coverage detected