Interface Int8ArrayConstructor
interface Int8ArrayConstructor {
new Int8ArrayConstructornew (length: number): Int8Array;
new Int8ArrayConstructornew (array: ArrayBufferLike | ArrayLike<number>): Int8Array;
new Int8ArrayConstructornew (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int8Array;
new Int8ArrayConstructornew (elements: Iterable<number, any, any>): Int8Array;
new Int8ArrayConstructornew (): Int8Array;
BYTES_PER_ELEMENT: number;
prototype: Int8Array;
from(arrayLike: ArrayLike<number>): Int8Array;
from<T>(arrayLike: ArrayLike<T>, mapfn: ((v: T, k: number) => number), thisArg?: any): Int8Array;
from(arrayLike: Iterable<number, any, any>, mapfn?: ((v: number, k: number) => number), thisArg?: any): Int8Array;
of(...items: number[]): Int8Array;
}
new Int8ArrayConstructornew (length: number): Int8Array;
new Int8ArrayConstructornew (array: ArrayBufferLike | ArrayLike<number>): Int8Array;
new Int8ArrayConstructornew (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int8Array;
new Int8ArrayConstructornew (elements: Iterable<number, any, any>): Int8Array;
new Int8ArrayConstructornew (): Int8Array;
BYTES_PER_ELEMENT: number;
prototype: Int8Array;
from(arrayLike: ArrayLike<number>): Int8Array;
from<T>(arrayLike: ArrayLike<T>, mapfn: ((v: T, k: number) => number), thisArg?: any): Int8Array;
from(arrayLike: Iterable<number, any, any>, mapfn?: ((v: number, k: number) => number), thisArg?: any): Int8Array;
of(...items: number[]): Int8Array;
}
Index
Constructors
constructor
- new
Int8 (length): Int8ArrayArray Constructor Parameters
- length: number
Returns Int8Array
- new
Int8 (array): Int8ArrayArray Constructor Parameters
- array: ArrayBufferLike | ArrayLike<number>
Returns Int8Array
- new
Int8 (buffer, byteOffset?, length?): Int8ArrayArray Constructor Parameters
- buffer: ArrayBufferLike
Optional
byteOffset: numberOptional
length: number
Returns Int8Array
- new
Int8 (elements): Int8ArrayArray Constructor Parameters
- elements: Iterable<number, any, any>
Returns Int8Array
- new
Int8 (): Int8ArrayArray Constructor Returns Int8Array
Methods
from
- from(arrayLike): Int8Array
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 Int8Array
- arrayLike: ArrayLike<number>
- from<T>(arrayLike, mapfn, thisArg?): Int8Array
Creates an array from an array-like or iterable object.
Type Parameters
Parameters
Returns Int8Array
- from(arrayLike, mapfn?, thisArg?): Int8Array
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 Int8Array
- arrayLike: Iterable<number, any, any>
The size in bytes of each element in the array.