docs: public long readMany(long beginSequence, ReadResultSetImpl result) {
          checkReadSequence(beginSequence);
  
          long seq = beginSequence;
          while (seq <= ringbuffer.tailSequence()) {
              result.addItem(seq, readOrLoadItem(seq));
              seq++;
              if (result.isMaxSizeReached()) {
                  // we have found all items we are looking for. We are done.
                  break;
              }
          }
          return seq;
      }