Uint32Array
The Uint32Array()
typed array constructor creates an
array of 32-bit unsigned integers in the platform byte order. If control over byte order
is needed, use DataView
instead. The contents are initialized to
0
. Once established, you can reference elements in the array using the
object's methods, or using standard array index syntax (that is, using bracket
notation).
Syntax
new Uint32Array()
new Uint32Array(length)
new Uint32Array(typedArray)
new Uint32Array(object)
new Uint32Array(buffer)
new Uint32Array(buffer, byteOffset)
new Uint32Array(buffer, byteOffset, length)
Note:
Uint32Array()
can only be constructed withnew
. Attempting to call it withoutnew
throws aTypeError
.
Parameters
See TypedArray
.
Exceptions
See TypedArray
.