readUnsignedShort method

int readUnsignedShort()

Reads an unsigned 16-bit integer from the byte stream.

Implementation

int readUnsignedShort() {
  _validate(2);
  int value = _getData().getUint16(_position, endian);
  _position += 2;
  return value;
}