getInt32 method

int getInt32([
  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 getInt32([Endian endian = Endian.little]) {
  final result = buffer.getInt32(offset, endian);
  offset += 4;
  return result;
}