readInt method
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;
}