Int16Array class

Int16Array class

Represents an array of twos-complement 16-bit signed integers in the platform byte order.

Inheritance: Int16ArrayTypedArrayDOMObject

The Int16Array type exposes the following members:

Constructors

ConstructorDescription
initInitializes a new instance of the Int16Array class.
initInitializes a new instance of the Int16Array class.
initInitializes a new instance of the Int16Array class.
initInitializes a new instance of the Int16Array class.
initInitializes a new instance of the Int16Array class.

Properties

PropertyDescription
bufferGets the ArrayBuffer referenced by this instance.
byte_lengthGets the byteLength accessor property represents the length of an ArrayBuffer in bytes.
byte_offsetGets the byteOffset from the start of referenced ArrayBuffer.
lengthGets the length of a typed array.
BYTES_PER_ELEMENTThe property represents the size in bytes of each element in an typed array.

Gets or sets the Int16 at the specified index.

Indexer

NameDescription
[index]The index.

Methods

MethodDescription
get_platform_typeThis method is used to retrieve ECMAScript object Type.

See Also