You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
just use wasmExports.__getFloat32Array(responseRef).slice() instead Float32Array.from(wasmExports.__getArray(responseRef))
Sometimes you could even don’t use slice if that result will use immediately) Adding .slice() (cloning) just for safety
similar for FLOAT64ARRAY, UINT32ARRAY and etc
The text was updated successfully, but these errors were encountered:
From @MaxGraey in the Assemblyscript slack:
btw about opts. You could significantly speedup interop here and similar places:
https://github.com/torch2424/as-bind/blob/master/lib/supported-ref-types.js#L128
just use wasmExports.__getFloat32Array(responseRef).slice() instead
Float32Array.from(wasmExports.__getArray(responseRef))
Sometimes you could even don’t use slice if that result will use immediately) Adding .slice() (cloning) just for safety
similar for FLOAT64ARRAY, UINT32ARRAY and etc
The text was updated successfully, but these errors were encountered: