readUint32 method

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

Reads a 32-bit unsigned integer. Increments index by 4.

Implementation

int readUint32([Endian endian = Endian.big]) {
  final byteData = this._byteData;
  final index = this.index;
  final newIndex = index + 4;
  if (newIndex > byteData.lengthInBytes) {
    throw _eofException(index, "uint32");
  }
  final value = _byteData.getUint32(index, endian);
  this.index = index + 4;
  return value;
}