public HeapCellArrayAllocationNumberMap(HeapCellArrayBase aArray) { int index = 0; /* * System.IO.StreamWriter w = new System.IO.StreamWriter( "C:\\temp\\temp.txt", false ); */ foreach (HeapCell cell in aArray) { if (cell.Type == HeapCell.TType.EAllocated) { uint allocNum = cell.AllocationNumber; // iRange.UpdateMin(allocNum); iRange.UpdateMax(allocNum); // if (!iTable.ContainsKey(allocNum)) { iTable.Add(allocNum, index); //w.WriteLine( " Alloc#: " + allocNum.ToString("d8") + ", addr: 0x" + cell.Address.ToString("x8") + ", indx: " + index.ToString() ); } else { //w.WriteLine( "DUPE Alloc#: " + allocNum.ToString("d8") + ", addr: 0x" + cell.Address.ToString("x8") ); } } ++index; } //w.Close(); // iEntries = aArray; }
public HeapCellArrayUnsorted(HeapCellArrayBase aCopyFrom) : this(aCopyFrom.Count) { foreach (HeapCell cell in aCopyFrom) { Add(cell); } }
public HeapCellArrayEnumerator(HeapCellArrayBase aArray) { iArray = aArray; }