public void Append(int lastPtr, Heap rhs) { TotalSize += rhs.TotalSize; rhs.ReallocPointers(lastPtr); Heaplist.InsertRange(lastPtr, rhs.Heaplist); }
private int AddHeapElement(HeapElement hpe) { int index = FindFree(); if (ProtoCore.DSASM.Constants.kInvalidIndex == index) { Heaplist.Add(hpe); index = Heaplist.Count - 1; } else { Heaplist[index].Active = true; Heaplist[index] = hpe; } return(index); }
public void Free() { TotalSize = 0; Heaplist.Clear(); freeList = new List <int>(); }