Example #1
0
        public static void Copy(T[] src, int srcIndex, NativeArray <T> dst, int dstIndex, int length)
        {
            UDebug.Assert(src != null);
            UDebug.Assert(src.Length >= srcIndex + length);
            UDebug.Assert(dst.IsCreated);
            UDebug.Assert(dst.Length >= dstIndex + length);

            fixed(void *ptr = src)
            Memory.ArrayCopy <T>(ptr, 0, UnsafeArray.GetBuffer(dst.m_inner), 0, length);
        }