mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-08-03 14:39:22 +00:00
Simplify section printing
This commit is contained in:
@@ -768,8 +768,8 @@ namespace BurnOutSharp.Wrappers
|
||||
{
|
||||
// TODO: Handle long section names with leading `/`
|
||||
string sectionName = Encoding.UTF8.GetString(section.Name);
|
||||
int sectionAddr = (int)section.PointerToRawData;
|
||||
int sectionEnd = sectionAddr + (int)section.VirtualSize;
|
||||
uint sectionAddr = section.PointerToRawData;
|
||||
uint sectionEnd = sectionAddr + section.VirtualSize;
|
||||
Console.WriteLine($"{sectionName}: {sectionAddr} -> {sectionEnd}");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user