Returns the 16-bit unsigned integer value at the specified byte offset from the start of the view.
getUint16(byteOffset, littleEndian?)
byteOffset
The byte offset in the view at which the value should be retrieved.
littleEndian optional
If true, a little-endian value is read.
If false or undefined, a big-endian value is read.
A number.
var buffer = new ArrayBuffer(2)
var view = new DataView(buffer)
view.setUint16(0, 0xffff)
view.getUint16(0)
65535