class Data:
    def __init__(self, offset, data, end = None):
        self.start = offset
        self.data = data
        if end is None:
            self.end = self.start + len(self.data)
class Flush:
    def __init__(self, parent = None):
        self.parent = parent
        if self.parent is not None:
            self.index = [self.parent]
            # this should expand self.parent if it's too deep, and
shallow it if there is only one child
        else:
            self.index = []
    def write(self, offset, data):
        # 1. trim index to left and right of data
        # 2. remove items in between and replace with data
  • [ot][spam][crazy] log 2: ap... Undiscussed Horrific Abuse, One Victim of Many
    • Re: [ot][spam][crazy] ... Undiscussed Horrific Abuse, One Victim of Many
      • Re: [ot][spam][cra... Undiscussed Horrific Abuse, One Victim of Many
        • Re: [ot][spam]... Undiscussed Horrific Abuse, One Victim of Many
          • Re: [ot][s... Undiscussed Horrific Abuse, One Victim of Many
            • Re: [... Undiscussed Horrific Abuse, One Victim of Many
              • R... Undiscussed Horrific Abuse, One Victim of Many
                • ... Undiscussed Horrific Abuse, One Victim of Many

Reply via email to