'Update all parent atoms with the new size.'

def __update_parents(self, fileobj, path, delta):

    if (delta == 0):
        return
    for atom in path:
        fileobj.seek(atom.offset)
        size = cdata.uint_be(fileobj.read(4))
        if (size == 1):
            size = cdata.ulonglong_be(fileobj.read(12)[4:])
            fileobj.seek((atom.offset + 8))
            fileobj.write(cdata.to_ulonglong_be((size + delta)))
        else:
            fileobj.seek(atom.offset)
            fileobj.write(cdata.to_uint_be((size + delta)))
