diff options
| author | Brian Potchik <brian@vector35.com> | 2023-10-02 11:30:02 -0400 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2023-10-02 11:30:02 -0400 |
| commit | c2b79f5927eaafd51fd6371a0ca1ea72a372d608 (patch) | |
| tree | 40101f0efac5d4120d88dac28a818dd28ddbe593 | |
| parent | 957f151baa1f2036d9c43fa2a4638f88fe256393 (diff) | |
Add GetEnd to Section API.
| -rw-r--r-- | binaryninjaapi.h | 1 | ||||
| -rw-r--r-- | binaryview.cpp | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/binaryninjaapi.h b/binaryninjaapi.h index fe039c4d..7f7fca60 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -3416,6 +3416,7 @@ namespace BinaryNinja { std::string GetType() const; uint64_t GetStart() const; uint64_t GetLength() const; + uint64_t GetEnd() const; uint64_t GetInfoData() const; uint64_t GetAlignment() const; uint64_t GetEntrySize() const; diff --git a/binaryview.cpp b/binaryview.cpp index db1974da..219a37e5 100644 --- a/binaryview.cpp +++ b/binaryview.cpp @@ -1015,6 +1015,12 @@ uint64_t Section::GetLength() const } +uint64_t Section::GetEnd() const +{ + return BNSectionGetEnd(m_object); +} + + uint64_t Section::GetInfoData() const { return BNSectionGetInfoData(m_object); |
