Exemple #1
0
 public void Dump(MemoryPartition Mark = null, int Level = 0)
 {
     Console.Write(new string(' ', Level * 2));
     Console.WriteLine(
         $"MemoryPartition(Low={Low:X}, High={High:X}, Allocated={Allocated}, Size={Size}, Name='{Name}'){((this == Mark) ? " * " : "")}");
     foreach (var ChildPartition in ChildPartitions)
     {
         ChildPartition.Dump(Level: Level + 1, Mark: Mark);
     }
 }
Exemple #2
0
 public void Dump(MemoryPartition Mark = null, int Level = 0, TextWriter output = null)
 {
     output ??= Console.Out;
     output.Write(new string(' ', Level * 2));
     output.WriteLine(
         $"MemoryPartition(Low={Low:X}, High={High:X}, Allocated={Allocated}, Size={Size}, Name='{Name}'){(this == Mark ? " * " : "")}");
     foreach (var ChildPartition in ChildPartitions)
     {
         ChildPartition.Dump(Level: Level + 1, Mark: Mark, output: output);
     }
 }
Exemple #3
0
 public void Dump(MemoryPartition Mark = null, int Level = 0)
 {
     Console.Write(new String(' ', Level * 2));
     Console.WriteLine(String.Format(
                           "MemoryPartition(Low={0:X}, High={1:X}, Allocated={2}, Size={3}){4}",
                           Low,
                           High,
                           Allocated,
                           Size,
                           (this == Mark) ? " * " : ""
                           ));
     foreach (var ChildPartition in ChildPartitions)
     {
         ChildPartition.Dump(Level: Level + 1, Mark: Mark);
     }
 }