예제 #1
0
파일: CDT.cs 프로젝트: dotsnav/dotsnav
        UnsafeList GetCrep(UnsafeList source)
        {
            var l = GetCrep();

            for (int i = 0; i < source.Length; i++)
            {
                l.Add(source.Read <Entity>(i));
            }
            return(l);
        }
예제 #2
0
 /// <summary>
 /// Checks two sorted lists for equality
 /// </summary>
 public static bool SequenceEqual <T>(this UnsafeList l, UnsafeList other) where T : unmanaged, IEquatable <T>
 {
     if (l.Length != other.Length)
     {
         return(false);
     }
     for (int i = 0; i < l.Length; i++)
     {
         if (!l.Read <T>(i).Equals(other.Read <T>(i)))
         {
             return(false);
         }
     }
     return(true);
 }