def bytes_between_positions(self, first, second):
        if first.mark_generation is not second.mark_generation:
            raise Exception('Attempt to compare positions from two different mark generations')

        return second.mark_offset - first.mark_offset
Returns the number of bytes between the two positions.
dataset/ETHPy150Open scalyr/scalyr-agent-2/scalyr_agent/log_processing.py/LogFileIterator.bytes_between_positions