Example #1
0
 private void SortInsertListFlipped()
 {
     if (insertListOrd != Ord.ORD_21)
     {
         PackedIntPairs.SortFlipped(insertList, insertCount);
         insertListOrd = Ord.ORD_21;
     }
 }
Example #2
0
        //////////////////////////////////////////////////////////////////////////////

        private void SortInsertList()
        {
            if (insertListOrd != Ord.ORD_12)
            {
                Debug.Assert(insertListOrd == Ord.ORD_NONE);
                PackedIntPairs.Sort(insertList, insertCount);
                insertListOrd = Ord.ORD_12;
            }
        }
Example #3
0
 private bool WasInserted2(int arg2)
 {
     if (insertCount <= 16)
     {
         for (int i = 0; i < insertCount; i++)
         {
             long entry = insertList[i];
             if (arg2 == Arg2(entry))
             {
                 return(true);
             }
         }
         return(false);
     }
     else
     {
         SortInsertListFlipped();
         return(PackedIntPairs.ContainsMinor(insertList, insertCount, arg2));
     }
 }
Example #4
0
 private bool WasInserted1(int arg1)
 {
     if (insertCount <= 16)
     {
         for (int i = 0; i < insertCount; i++)
         {
             long entry = insertList[i];
             if (arg1 == Arg1(entry))
             {
                 return(true);
             }
         }
         return(false);
     }
     else
     {
         SortInsertList();
         return(PackedIntPairs.ContainsMajor(insertList, insertCount, arg1));
     }
 }