From 038d192dfb3f73a268447d890cccf27926d35941 Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Fri, 29 Jul 2016 22:12:59 -0400 Subject: Add API to set display type of integers --- function.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'function.cpp') diff --git a/function.cpp b/function.cpp index 55f5cffb..7c188e72 100644 --- a/function.cpp +++ b/function.cpp @@ -539,3 +539,17 @@ vector> 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); +} -- cgit v1.3.1