Creates a case parameter for a typedarray.
You can't put typedarrays in case parameters directly so instead of
u.combine('data', [ new Uint8Array([1, 2, 3]), new Float32Array([4, 5, 6]),]) Copy
u.combine('data', [ new Uint8Array([1, 2, 3]), new Float32Array([4, 5, 6]),])
You can use
u.combine('data', [ typedArrayParam('Uint8Array' [1, 2, 3]), typedArrayParam('Float32Array' [4, 5, 6]),]) Copy
u.combine('data', [ typedArrayParam('Uint8Array' [1, 2, 3]), typedArrayParam('Float32Array' [4, 5, 6]),])
and then convert the params to typedarrays eg.
.fn(t => { const data = t.params.data.map(v => typedArrayFromParam(v)); }) Copy
.fn(t => { const data = t.params.data.map(v => typedArrayFromParam(v)); })
Generated using TypeDoc
Creates a case parameter for a typedarray.
You can't put typedarrays in case parameters directly so instead of
You can use
and then convert the params to typedarrays eg.