|
32 | 32 | TypeReferenceType, MemberAccess, MemberScope, TypeDefinitionLineType, |
33 | 33 | TokenEscapingType, |
34 | 34 | NameType, PointerSuffix, PointerBaseType, |
35 | | - Endianness |
| 35 | + Endianness, IntegerDisplayType |
36 | 36 | ) |
37 | 37 | from . import callingconvention |
38 | 38 | from . import function as _function |
@@ -903,6 +903,15 @@ def signed(self, value: BoolWithConfidenceType) -> None: |
903 | 903 | _value = BoolWithConfidence.get_core_struct(value) |
904 | 904 | core.BNTypeBuilderSetSigned(self._handle, _value) |
905 | 905 |
|
| 906 | + @property |
| 907 | + def display_type(self) -> IntegerDisplayType: |
| 908 | + """Integer display type for this type.""" |
| 909 | + return core.BNGetIntegerTypeDisplayType(self.immutable_copy().handle) |
| 910 | + |
| 911 | + @display_type.setter |
| 912 | + def display_type(self, value: IntegerDisplayType) -> None: |
| 913 | + core.BNSetIntegerTypeDisplayType(self._handle, value) |
| 914 | + |
906 | 915 | @property |
907 | 916 | def children(self) -> List['TypeBuilder']: |
908 | 917 | return [] |
@@ -2145,6 +2154,11 @@ def attributes(self) -> Dict[str, str]: |
2145 | 2154 | core.BNFreeTypeAttributeList(attributes, count.value) |
2146 | 2155 | return result |
2147 | 2156 |
|
| 2157 | + @property |
| 2158 | + def display_type(self) -> IntegerDisplayType: |
| 2159 | + """Integer display type for this type.""" |
| 2160 | + return core.BNGetIntegerTypeDisplayType(self._handle) |
| 2161 | + |
2148 | 2162 | def _to_core_struct(self) -> core.BNTypeWithConfidence: |
2149 | 2163 | type_conf = core.BNTypeWithConfidence() |
2150 | 2164 | type_conf.type = self._handle |
|
0 commit comments