readShort method

int readShort()

Converts two bytes from the read buffer to a signed int.

The byte order is big-endian.

@return the int value.

Implementation

int readShort() {
  assert(_bufferPosition < _bufferData.length);
  this._bufferPosition += 2;
  return Deserializer.getShort(this._bufferData, this._bufferPosition - 2);
}