The Int32Array
type represents an array of twos-complement 32-bit signed integers.
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).
TypedArray
represents any of the typed array object types.Int32Array Int32Array(unsigned long length); |
Int32Array Int32Array (TypedArray array); |
Int32Array Int32Array (sequence<type> array); |
Int32Array Int32Array (ArrayBuffer buffer, optional unsigned long byteOffset, optional unsigned long length); |
Returns a new Int32Array
object.
Int32Array Int32Array( unsigned long length );Int32Array Int32Array( TypedArray array );
Int32Array Int32Array( sequence<type> array );
Int32Array Int32Array( ArrayBuffer buffer, optional unsigned long byteOffset, optional unsigned long length );
length
array
Int16Array
), or a sequence of objects of a particular type, to copy into a new ArrayBuffer
. Each value in the source array is converted to a 32-bit signed integer before being copied into the new array.buffer
ArrayBuffer
to use as the storage for the new Int32Array
object.byteOffset
Int32Array
's view of the buffer will start with the first byte.A new Int32Array
object representing the specified data buffer.
Sets multiple values in the typed array, reading input values from a specified array.
array
ArrayBuffer
; the browser will intelligently copy the source range of the buffer to the destination range.array
. If you omit this value, 0 is assumed (that is, the source array
will overwrite values in the target array starting at index 0).