public static void Copy(NativeArray <T> .ReadOnly src, T[] dst) { AtomicSafetyHandle.CheckReadAndThrow(src.m_Safety); NativeArray <T> .CheckCopyLengths(src.Length, dst.Length); NativeArray <T> .Copy(src, 0, dst, 0, src.Length); }
public static void Copy(T[] src, NativeArray <T> dst) { AtomicSafetyHandle.CheckWriteAndThrow(dst.m_Safety); NativeArray <T> .CheckCopyLengths(src.Length, dst.Length); NativeArray <T> .Copy(src, 0, dst, 0, src.Length); }