Uint16Array
The Uint16Array() typed array constructor creates an
array of 16-bit unsigned integers in the platform byte order.
Syntaxâ
new Uint16Array()
new Uint16Array(length)
new Uint16Array(typedArray)
new Uint16Array(object)
new Uint16Array(buffer)
new Uint16Array(buffer, byteOffset)
new Uint16Array(buffer, byteOffset, length)
Note:
Uint16Array()can only be constructed withnew. Attempting to call it withoutnewthrows aTypeError.
Parametersâ
See TypedArray.
Exceptionsâ
See TypedArray.