Formats: Add Section.ImageLength / VirtualLength

This commit is contained in:
Katy Coe
2021-01-12 00:15:21 +01:00
parent f7e99f2e42
commit 5fdea13859

View File

@@ -6,7 +6,7 @@
namespace Il2CppInspector
{
// A code file function export
// A code file function export - end addresses are inclusive
public class Section
{
public ulong VirtualStart;
@@ -17,5 +17,8 @@ namespace Il2CppInspector
public bool IsData;
public bool IsBSS;
public string Name;
public int ImageLength => (int) (ImageEnd - ImageStart) + 1;
public ulong VirtualLength => (VirtualEnd - VirtualStart) + 1;
}
}