readShort method

int readShort()

Read a short int(16 bits)

Implementation

int readShort() {
  final high = readByte();
  final low = readByte();
  return (high << 8) + low;
}