readUint32 method
Implementation
int readUint32(int position, int fileSize) {
if (position >= (_fileSize - 4) || position < 0) {
return 0;
}
if (position < _position || position >= (_position + (_bufferSize - 4))) {
_readBuffer(position, fileSize);
}
var p = position - _position;
final b1 = _buffer[p++];
final b2 = _buffer[p++];
final b3 = _buffer[p++];
final b4 = _buffer[p++];
if (byteOrder == BIG_ENDIAN) {
return (b1 << 24) | (b2 << 16) | (b3 << 8) | b4;
}
return (b4 << 24) | (b3 << 16) | (b2 << 8) | b1;
}