MCPcopy Create free account
hub / github.com/FutureSDR/FutureSDR / process

Method process

examples/rattlegram/worklet/wasm-decoder.js:179–193  ·  view source on GitHub ↗

* @param {Float32Array} samples * @returns {string}

(samples)

Source from the content-addressed store, hash-verified

177 * @returns {string}
178 */
179 process(samples) {
180 try {
181 const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
182 const ptr0 = passArrayF32ToWasm0(samples, wasm.__wbindgen_malloc);
183 const len0 = WASM_VECTOR_LEN;
184 wasm.wasmdecoder_process(retptr, this.__wbg_ptr, ptr0, len0);
185 var r0 = getInt32Memory0()[retptr / 4 + 0];
186 var r1 = getInt32Memory0()[retptr / 4 + 1];
187 var v2 = getCachedStringFromWasm0(r0, r1);
188 if (r0 !== 0) { wasm.__wbindgen_free(r0, r1, 1); }
189 return v2;
190 } finally {
191 wasm.__wbindgen_add_to_stack_pointer(16);
192 }
193}
194}
195
196async function __wbg_load(module, imports) {

Callers

nothing calls this directly

Calls 3

passArrayF32ToWasm0Function · 0.85
getInt32Memory0Function · 0.85
getCachedStringFromWasm0Function · 0.85

Tested by

no test coverage detected