diff options
Diffstat (limited to 'python/types.py')
| -rw-r--r-- | python/types.py | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/python/types.py b/python/types.py index b47d98ce..80c70e14 100644 --- a/python/types.py +++ b/python/types.py @@ -32,7 +32,7 @@ from .enums import ( TypeReferenceType, MemberAccess, MemberScope, TypeDefinitionLineType, TokenEscapingType, NameType, PointerSuffix, PointerBaseType, - Endianness + Endianness, IntegerDisplayType ) from . import callingconvention from . import function as _function @@ -904,6 +904,15 @@ class TypeBuilder: core.BNTypeBuilderSetSigned(self._handle, _value) @property + def display_type(self) -> IntegerDisplayType: + """Integer display type for this type.""" + return core.BNGetIntegerTypeDisplayType(self.immutable_copy().handle) + + @display_type.setter + def display_type(self, value: IntegerDisplayType) -> None: + core.BNSetIntegerTypeDisplayType(self._handle, value) + + @property def children(self) -> List['TypeBuilder']: return [] @@ -2145,6 +2154,11 @@ class Type: core.BNFreeTypeAttributeList(attributes, count.value) return result + @property + def display_type(self) -> IntegerDisplayType: + """Integer display type for this type.""" + return core.BNGetIntegerTypeDisplayType(self._handle) + def _to_core_struct(self) -> core.BNTypeWithConfidence: type_conf = core.BNTypeWithConfidence() type_conf.type = self._handle |
