seekRelative method

void seekRelative(
  1. int position
)

seek current pointer to a position relative to the current position

Implementation

void seekRelative(int position) {
  if (_currentPosition + position > data.lengthInBytes ||
      _currentPosition + position < 0) {
    throw IndexError(position, data);
  }
  this._currentPosition += position;
}