diff options
| -rw-r--r-- | binaryninjaapi.h | 1 | ||||
| -rw-r--r-- | functiongraphblock.cpp | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/binaryninjaapi.h b/binaryninjaapi.h index 379e0d88..358d278b 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -832,6 +832,7 @@ namespace BinaryNinja BNFunctionGraphBlock* GetBlockObject() const { return m_block; } + Ref<Architecture> GetArchitecture() const; uint64_t GetStart() const; uint64_t GetEnd() const; int GetX() const; diff --git a/functiongraphblock.cpp b/functiongraphblock.cpp index 3653d749..d598c4a1 100644 --- a/functiongraphblock.cpp +++ b/functiongraphblock.cpp @@ -15,6 +15,12 @@ FunctionGraphBlock::~FunctionGraphBlock() } +Ref<Architecture> FunctionGraphBlock::GetArchitecture() const +{ + return new CoreArchitecture(BNGetFunctionGraphBlockArchitecture(m_block)); +} + + uint64_t FunctionGraphBlock::GetStart() const { return BNGetFunctionGraphBlockStart(m_block); |
