summaryrefslogtreecommitdiff
path: root/python/types.py
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2022-01-20 13:14:10 -0500
committerPeter LaFosse <peter@vector35.com>2022-01-20 13:14:10 -0500
commitb97912fbac14e760f1b595180ffe58af1ee34194 (patch)
tree534ddef7d34da9908e68e1add118c4a31c195111 /python/types.py
parent2c2f0d72e0540bc9bc47fc025643ff51317405e5 (diff)
Create setter signed in TypeBuilder
Diffstat (limited to 'python/types.py')
-rw-r--r--python/types.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/python/types.py b/python/types.py
index c5086d56..2af6a537 100644
--- a/python/types.py
+++ b/python/types.py
@@ -759,6 +759,10 @@ class TypeBuilder:
def signed(self) -> BoolWithConfidence:
return BoolWithConfidence.from_core_struct(core.BNIsTypeBuilderSigned(self._handle))
+ @signed.setter
+ def signed(self, value:BoolWithConfidenceType) -> None: # type: ignore
+ _value = BoolWithConfidence.get_core_struct(value)
+ core.BNTypeBuilderSetSigned(self._handle, _value)
class VoidBuilder(TypeBuilder):
@classmethod