Version: 2022.3
public static void Copy (NativeArray<T> src, NativeArray<T> dst);
public static void Copy (T[] src, NativeArray<T> dst);
public static void Copy (ReadOnly<T> src, NativeArray<T> dst);
public static void Copy (NativeArray<T> src, T[] dst);
public static void Copy (ReadOnly<T> src, T[] dst);
public static void Copy (NativeArray<T> src, NativeArray<T> dst, int length);
public static void Copy (ReadOnly<T> src, NativeArray<T> dst, int length);
public static void Copy (T[] src, NativeArray<T> dst, int length);
public static void Copy (NativeArray<T> src, T[] dst, int length);
public static void Copy (ReadOnly<T> src, T[] dst, int length);
public static void Copy (NativeArray<T> src, int srcIndex, NativeArray<T> dst, int dstIndex, int length);
public static void Copy (ReadOnly<T> src, int srcIndex, T[] dst, int dstIndex, int length);
public static void Copy (T[] src, int srcIndex, NativeArray<T> dst, int dstIndex, int length);
public static void Copy (NativeArray<T> src, int srcIndex, T[] dst, int dstIndex, int length);
public static void Copy (ReadOnly<T> src, int srcIndex, NativeArray<T> dst, int dstIndex, int length);

参数

src 要复制的数据。
dst 接收数据的数组。
length 这是一个 32 位的整数,表示要复制的元素数量。此整数必须大于或等于零。
srcIndex 这是一个 32 位的整数,表示 srcArray 中开始复制的索引。
dstIndex 这是一个 32 位的整数,表示 dstArray 中开始存储的索引。

描述

将一系列元素从源数组复制到目标数组,从源索引开始将它们复制到目标索引。


Did you find this page useful? Please give it a rating: