readInt16 method

int readInt16([
  1. Endian endian = Endian.big
])

Reads an Int16.

Implementation

int readInt16([Endian endian = Endian.big]) {
  bytesIO.checkCanRead(2);
  final pos = bytesIO.position;
  var n = _bytesData.getInt16(pos, endian);
  bytesIO.incrementPosition(2);
  return n;
}