Int16Array Class
Int16Array class
Represents an array of twos-complement 16-bit signed integers in the platform byte order.
public class Int16Array : TypedArray<short>
Constructors
Name | Description |
---|
Int16Array(ArrayBuffer) | Initializes a new instance of the Int16Array class. |
Int16Array(int) | Initializes a new instance of the Int16Array class. |
Int16Array(short[]) | Initializes a new instance of the Int16Array class. |
Int16Array(ArrayBuffer, int) | Initializes a new instance of the Int16Array class. |
Int16Array(ArrayBuffer, int, int) | Initializes a new instance of the Int16Array class. |
Properties
Name | Description |
---|
getBuffer Gets the ArrayBuffer referenced by this instance. | |
getByteLength Gets the byteLength accessor property represents the length of an ArrayBuffer in bytes. | |
getByteOffset Gets the byteOffset from the start of referenced ArrayBuffer. | |
[getItem] | |
[setItem] Gets or sets the Int16 at the specified index. | |
getLength Gets the length of a typed array. | |
Methods
Name | Description |
---|
getPlatformType() | This method is used to retrieve the ECMAScript object . |
Fields
Name | Description |
---|
static readonly BYTES_PER_ELEMENT | The property represents the size in bytes of each element in an typed array. |
See Also