readInt method

int readInt({
  1. bool signed = false,
})
inherited

Reads a 4 byte integer starting at readPosition.

Implementation

int readInt({bool signed = false}) {
  final value = signed
      ? readByteData!.getInt32(readPosition, _endianness)
      : readByteData!.getUint32(readPosition, _endianness);
  readPosition += 4;
  return value;
}