From c2b79f5927eaafd51fd6371a0ca1ea72a372d608 Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Mon, 2 Oct 2023 11:30:02 -0400 Subject: Add GetEnd to Section API. --- binaryninjaapi.h | 1 + binaryview.cpp | 6 ++++++ 2 files changed, 7 insertions(+) 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); -- cgit v1.3.1