code: def read_to_offset(self, offset):
      
      assert offset >= self._offset
      result = self._buffer[self._offset: offset]
      self._offset += len(result)
      return result
docs: Returns bytes from self._buffer and update related offsets.
  
      Args:
        offset: read from current offset to this offset, exclusive.
  
      Returns:
        Requested bytes from buffer.