summaryrefslogtreecommitdiff
path: root/type.cpp
diff options
context:
space:
mode:
authorAlexander Taylor <alex@vector35.com>2026-05-12 21:19:28 -0400
committerAlexander Taylor <alex@vector35.com>2026-05-13 13:32:22 -0400
commit4c278a57b59c4b8e913d17b47bc4828659b32659 (patch)
treed179792a704c615a3838ecfbfe636bc537d82216 /type.cpp
parent6a1c332697cbe12d6b2b7857bf21bc440706c0be (diff)
Changes related to display as/type toggling.
Diffstat (limited to 'type.cpp')
-rw-r--r--type.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/type.cpp b/type.cpp
index 5aa679a1..3ae1ed21 100644
--- a/type.cpp
+++ b/type.cpp
@@ -1598,6 +1598,15 @@ Confidence<bool> TypeBuilder::IsVolatile() const
}
+BNIntegerDisplayType TypeBuilder::GetIntegerTypeDisplayType() const
+{
+ BNType* type = BNFinalizeTypeBuilder(m_object);
+ BNIntegerDisplayType result = BNGetIntegerTypeDisplayType(type);
+ BNFreeType(type);
+ return result;
+}
+
+
void TypeBuilder::SetIntegerTypeDisplayType(BNIntegerDisplayType displayType)
{
BNSetIntegerTypeDisplayType(m_object, displayType);
@@ -3442,4 +3451,3 @@ fmt::format_context::iterator fmt::formatter<BinaryNinja::Type>::format(
return fmt::format_to(ctx.out(), "{}{}", obj.GetStringBeforeName(), obj.GetStringAfterName());
}
}
-