diff options
| author | Rusty Wagner <rusty@vector35.com> | 2016-07-29 22:12:59 -0400 |
|---|---|---|
| committer | Rusty Wagner <rusty@vector35.com> | 2016-07-29 22:12:59 -0400 |
| commit | 038d192dfb3f73a268447d890cccf27926d35941 (patch) | |
| tree | 87065866c86fd7416e520124b8a688d3da16883e /function.cpp | |
| parent | 508584830e65fc08ea3a756dfa651670c9e01217 (diff) | |
Add API to set display type of integers
Diffstat (limited to 'function.cpp')
| -rw-r--r-- | function.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/function.cpp b/function.cpp index 55f5cffb..7c188e72 100644 --- a/function.cpp +++ b/function.cpp @@ -539,3 +539,17 @@ vector<vector<InstructionTextToken>> Function::GetBlockAnnotations(Architecture* BNFreeInstructionTextLines(lines, count); return result; } + + +BNIntegerDisplayType Function::GetIntegerConstantDisplayType(Architecture* arch, uint64_t instrAddr, uint64_t value, + size_t operand) +{ + return BNGetIntegerConstantDisplayType(m_object, arch->GetObject(), instrAddr, value, operand); +} + + +void Function::SetIntegerConstantDisplayType(Architecture* arch, uint64_t instrAddr, uint64_t value, size_t operand, + BNIntegerDisplayType type) +{ + BNSetIntegerConstantDisplayType(m_object, arch->GetObject(), instrAddr, value, operand, type); +} |
