uint16Array Class
Array of type uint16_t.
Item Index
Methods
Methods
uint16Array
(
-
nelements
Instantiates the array.
Parameters:
-
nelements
Numbernumber of elements in the array
getitem
(
Number
-
index
Access a particular element in the array.
Parameters:
-
index
Numberindex of array to read from
Returns:
Number:
the value of the element found at the given index of the array
setitem
(
-
index
-
value
Modify a particular element in the array.
Parameters:
-
index
Numberindex of array to write to
-
value
Numberthe value to set the element found at the given index of the array