From 4c278a57b59c4b8e913d17b47bc4828659b32659 Mon Sep 17 00:00:00 2001 From: Alexander Taylor Date: Tue, 12 May 2026 21:19:28 -0400 Subject: Changes related to display as/type toggling. --- rust/src/types.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'rust/src') diff --git a/rust/src/types.rs b/rust/src/types.rs index f45d93bc..e6c16f6b 100644 --- a/rust/src/types.rs +++ b/rust/src/types.rs @@ -171,6 +171,11 @@ impl TypeBuilder { self } + pub fn set_integer_display_type(&self, display_type: IntegerDisplayType) -> &Self { + unsafe { BNSetIntegerTypeDisplayType(self.handle, display_type) }; + self + } + // Readable properties pub fn type_class(&self) -> TypeClass { @@ -189,6 +194,10 @@ impl TypeBuilder { unsafe { BNIsTypeBuilderSigned(self.handle).into() } } + pub fn integer_display_type(&self) -> IntegerDisplayType { + self.finalize().integer_display_type() + } + pub fn is_const(&self) -> Conf { unsafe { BNIsTypeBuilderConst(self.handle).into() } } @@ -689,6 +698,10 @@ impl Type { unsafe { BNIsTypeSigned(self.handle).into() } } + pub fn integer_display_type(&self) -> IntegerDisplayType { + unsafe { BNGetIntegerTypeDisplayType(self.handle) } + } + pub fn is_const(&self) -> Conf { unsafe { BNIsTypeConst(self.handle).into() } } -- cgit v1.3.1