extern class js.html.Uint32Arrayextends ArrayBufferViewAvailable in js

The Uint32Array type represents an array of 32-bit unsigned 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).

Documentation for this class was provided by MDN.
var length(default,null) : IntThe number of entries in the array. Read only. function new( buffer : ArrayBuffer, ?byteOffset : Int, ?length : Int ) : Void
Note: In these methods, TypedArray represents any of the typed array object types.
Uint32Array Uint32Array(unsigned long length);
Uint32Array Uint32Array(TypedArray array);
Uint32Array Uint32Array(sequence<type> array);
Uint32Array Uint32Array(ArrayBuffer buffer, optional unsigned long byteOffset, optional unsigned long length);

Returns a new Uint32Array object.

Uint32Array Uint32Array(
  unsigned long length

Uint32Array Uint32Array(
  TypedArray array

Uint32Array Uint32Array(
  sequence<type> array

Uint32Array Uint32Array(
  ArrayBuffer buffer,
  optional unsigned long byteOffset,
  optional unsigned long length
The number of elements in the byte array. If unspecified, length of the array view will match the buffer's length.
An object of any of the typed array types (such as 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 unsigned integer before being copied into the new array.
An existing ArrayBuffer to use as the storage for the new Uint32Array object.
The offset, in bytes, to the first byte in the specified buffer for the new view to reference. If not specified, the Uint32Array's view of the buffer will start with the first byte.
Return value

A new Uint32Array object representing the specified data buffer.

function set( array : Uint32Array, ?offset : Int ) : Void

Sets multiple values in the typed array, reading input values from a specified array.

An array from which to copy values. All values from the source array are copied into the target array, unless the length of the source array plus the offset exceeds the length of the target array, in which case an exception is thrown. If the source array is a typed array, the two arrays may share the same underlying ArrayBuffer; the browser will intelligently copy the source range of the buffer to the destination range.
offset Optional
The offset into the target array at which to begin writing values from the source 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).
function subarray( start : Int, ?end : Int ) : Uint32Array static inline var BYTES_PER_ELEMENT : IntThe size, in bytes, of each array element.
version #19260, modified 2013-05-08 11:09:45 by api
0 comment