////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// public void Prepare123() { if (deleteCount != 0 | insertCount != 0) { Debug.Assert(currOrd == Ord.ORD_NONE | currOrd == Ord.ORD_123); if (currOrd != Ord.ORD_123) { Ints123.Sort(deleteList, deleteCount); Ints123.Sort(insertList, insertCount); currOrd = Ord.ORD_123; } } }
////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// private void Prepare() { if (!prepared) { for (int i = 0; i < deleteCount; i++) { Debug.Assert(deleteList[3 * i] <= deleteList[3 * i + 1]); } Ints123.Sort(deleteList, deleteCount); Ints123.Sort(insertList, insertCount); prepared = true; } }