readInt32 method

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

Reads an Int32.

Implementation

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