canSeek(index) {
    const state = this.#state;
    return index >= 0 && state.offset + index <= state.length;
  }
@param {number} index
@returns {boolean} whether the read head can move to the given absolute
index.