diffset copy func