예제 #1
0
        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);
        }
예제 #2
0
        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);
        }