Example #1
0
        public bool RemoveAll(LongArray array)
        {
            int length      = this.length;
            int startlength = length;

            long[] items = this.items;
            for (int i = 0, n = array.length; i < n; i++)
            {
                long item = array.Get(i);
                for (int ii = 0; ii < length; ii++)
                {
                    if (item == items[ii])
                    {
                        RemoveIndex(ii);
                        length--;
                        break;
                    }
                }
            }
            return(length != startlength);
        }
Example #2
0
 public LongArray Concat(LongArray o)
 {
     return(new LongArray(Concat(this.items, this.length, o.items, o.length)));
 }
Example #3
0
 public void AddAll(LongArray array)
 {
     AddAll(array, 0, array.length);
 }