code: private boolean isMoreToReadAfterReadingRecord(
        final SequenceOffsetType recordSequenceNumber,
        final SequenceOffsetType endSequenceNumber
    )
    {
      final int compareNextToEnd = createSequenceNumber(getNextStartOffset(recordSequenceNumber))
          .compareTo(createSequenceNumber(endSequenceNumber));
  
      // Unlike isMoreToReadBeforeReadingRecord, we don't care if the end is exclusive or not. If we read it, we're done.
      return compareNextToEnd < 0;
    }
docs: Returns true if, given that recordSequenceNumber has already been read and we want to end at endSequenceNumber,
  there is more left to read. Used in post-read checks to determine if there is anything left to read.