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