typed-array-interleave
v2.0.2
Published
Interleave n typed arrays.
Downloads
361
Maintainers
Readme
typed-array-interleave
Interleave n typed arrays.
Installation
npm install typed-array-interleaveUsage
import typedArrayInterleave from "typed-array-interleave";
typedArrayInterleave(
Uint8Array,
[3, 2],
Uint8Array.of(1, 2, 3, 4, 5, 6),
Uint8Array.of(7, 8, 9, 10)
);
//=> Uint8Array [1, 2, 3, 7, 8, 4, 5, 6, 9, 10]API
typedArrayInterleave
- typedArrayInterleave
- typedArrayInterleave(ResultConstructor, elements, ...arrays) ⇒ TypedArray ⏏
- ~TypedArray : Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float16Array | Float32Array | Float64Array
- typedArrayInterleave(ResultConstructor, elements, ...arrays) ⇒ TypedArray ⏏
typedArrayInterleave(ResultConstructor, elements, ...arrays) ⇒ TypedArray ⏏
Interleave n typed arrays
Kind: Exported function
| Param | Type | Description | | ----------------- | --------------------------------- | ------------------------------------------------ | | ResultConstructor | function | Returned typed array constructor | | elements | Array.<number> | Number of elements to group for each typed array | | ...arrays | TypedArray | Arrays to interleave |
typedArrayInterleave~TypedArray : Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float16Array | Float32Array | Float64Array
Kind: inner typedef of typedArrayInterleave
License
MIT. See license file.
