readShort method

int readShort()

Reads a signed 16-bit integer from the byte stream.

Implementation

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