Interface Int16ArrayConstructor
interface Int16ArrayConstructor {
new Int16ArrayConstructornew (length: number): Int16Array;
new Int16ArrayConstructornew (array: ArrayBufferLike | ArrayLike<number>): Int16Array;
new Int16ArrayConstructornew (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int16Array;
new Int16ArrayConstructornew (elements: Iterable<number, any, any>): Int16Array;
new Int16ArrayConstructornew (): Int16Array;
BYTES_PER_ELEMENT: number;
prototype: Int16Array;
from(arrayLike: ArrayLike<number>): Int16Array;
from<T>(arrayLike: ArrayLike<T>, mapfn: ((v: T, k: number) => number), thisArg?: any): Int16Array;
from(arrayLike: Iterable<number, any, any>, mapfn?: ((v: number, k: number) => number), thisArg?: any): Int16Array;
of(...items: number[]): Int16Array;
}
new Int16ArrayConstructornew (length: number): Int16Array;
new Int16ArrayConstructornew (array: ArrayBufferLike | ArrayLike<number>): Int16Array;
new Int16ArrayConstructornew (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int16Array;
new Int16ArrayConstructornew (elements: Iterable<number, any, any>): Int16Array;
new Int16ArrayConstructornew (): Int16Array;
BYTES_PER_ELEMENT: number;
prototype: Int16Array;
from(arrayLike: ArrayLike<number>): Int16Array;
from<T>(arrayLike: ArrayLike<T>, mapfn: ((v: T, k: number) => number), thisArg?: any): Int16Array;
from(arrayLike: Iterable<number, any, any>, mapfn?: ((v: number, k: number) => number), thisArg?: any): Int16Array;
of(...items: number[]): Int16Array;
}
Index
Constructors
constructor
- new
Int16 (length): Int16ArrayArray Constructor Parameters
- length: number
Returns Int16Array
- new
Int16 (array): Int16ArrayArray Constructor Parameters
- array: ArrayBufferLike | ArrayLike<number>
Returns Int16Array
- new
Int16 (buffer, byteOffset?, length?): Int16ArrayArray Constructor Parameters
- buffer: ArrayBufferLike
Optional
byteOffset: numberOptional
length: number
Returns Int16Array
- new
Int16 (elements): Int16ArrayArray Constructor Parameters
- elements: Iterable<number, any, any>
Returns Int16Array
- new
Int16 (): Int16ArrayArray Constructor Returns Int16Array
Methods
from
- from(arrayLike): Int16Array
Creates an array from an array-like or iterable object.
Parameters
- arrayLike: ArrayLike<number>
An array-like or iterable object to convert to an array.
Returns Int16Array
- arrayLike: ArrayLike<number>
- from<T>(arrayLike, mapfn, thisArg?): Int16Array
Creates an array from an array-like or iterable object.
Type Parameters
Parameters
Returns Int16Array
- from(arrayLike, mapfn?, thisArg?): Int16Array
Creates an array from an array-like or iterable object.
Parameters
- arrayLike: Iterable<number, any, any>
An array-like or iterable object to convert to an array.
Optional
mapfn: ((v: number, k: number) => number)A mapping function to call on every element of the array.
- (v, k): number
Parameters
- v: number
- k: number
Returns number
Optional
thisArg: anyValue of 'this' used to invoke the mapfn.
Returns Int16Array
- arrayLike: Iterable<number, any, any>
of
- of(...items): Int16Array
Returns a new array from a set of elements.
Parameters
Rest
...items: number[]A set of elements to include in the new array object.
Returns Int16Array
The size in bytes of each element in the array.