示例#1
0
 private static void PrintStreamInfo(string name, MetadataStreamInfo streamInfo)
 {
     Debug.WriteLine($"Name: {name}");
     if (streamInfo == null)
     {
         Debug.WriteLine("Not exists.");
     }
     else
     {
         Debug.WriteLine($"Address: 0x{streamInfo.RVA.ToString("X8")}");
         Debug.WriteLine($"Length: 0x{streamInfo.Length.ToString("X8")}");
     }
     Debug.WriteLine(string.Empty);
 }
示例#2
0
 private static void PrintStreamInfo(string name, MetadataStreamInfo streamInfo)
 {
     Console.WriteLine($"Name: {name}");
     if (streamInfo == null)
     {
         Console.WriteLine("Not exists.");
     }
     else
     {
         Console.WriteLine($"Address: 0x{((IntPtr)streamInfo.Address).ToString(IntPtr.Size == 4 ? "X8" : "X16")}");
         Console.WriteLine($"Length: 0x{streamInfo.Length.ToString("X8")}");
     }
     Console.WriteLine();
 }
示例#3
0
 private static void PrintStreamInfo(string name, MetadataStreamInfo streamInfo)
 {
     Console.WriteLine($"Name: {name}");
     if (streamInfo == null)
     {
         Console.WriteLine("Not exists.");
     }
     else
     {
         Console.WriteLine($"Address: 0x{((IntPtr)streamInfo.Address).ToHexString()}");
         Console.WriteLine($"Length: 0x0{streamInfo.Length:X8}");
     }
     Console.WriteLine();
 }