readUint8 method

int readUint8(
  1. int position,
  2. int fileSize
)

Implementation

int readUint8(int position, int fileSize) {
  if (position >= _fileSize || position < 0) {
    return 0;
  }
  if (position < _position || position >= (_position + _bufferSize)) {
    _readBuffer(position, fileSize);
  }
  var p = position - _position;
  return _buffer[p];
}