summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--binaryninjaapi.h1
-rw-r--r--binaryview.cpp6
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);