getInt16 method

int getInt16([
  1. Endian endian = Endian.little
])

Returns the (possibly negative) integer represented by the four bytes Increments the offset value by four The return value will be between -215 and 215 - 1, inclusive.

Implementation

int getInt16([Endian endian = Endian.little]) {
  final result = buffer.getInt16(offset, endian);
  offset += 2;
  return result;
}