def METHOD_NAME(self):
    self.blocks.sort(key = lambda x: x.offset)
    data = bytes()
    for b in self.blocks:
        if b.offset != len(data):
            print("gap at %u" % len(data))
            return None
        data += bytes(b.data)
    return data