@Override
        public int writeTo(TransferableChannel channel, int position, int length) throws IOException {
            // only use in RecordsSend which send Records to network. usually the size won't be large.
            ensureAllLoaded();
            return memoryRecords.writeTo(channel, position, length);
        }
Return the largest timestamp of the messages after a given offset

@param startOffset The starting offset.
@return The largest timestamp of the messages after the given position.
core/src/main/scala/kafka/log/streamaspect/ElasticLogFileRecords.java