seek(index) {
    const state = this.#state;
    const restore = state.index;
    this.assertCanSeek(index);
    state.index = index;
    return restore;
  }
@param {number} index
@returns {number} prior index