From 3375478963786425457931027834955525009658 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Mon, 20 May 2024 20:18:52 -0400 Subject: Add TypeBuilder::SetWidth and TypeBuilder::SetAlignment --- python/types.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'python/types.py') diff --git a/python/types.py b/python/types.py index 945b88be..aea8f02c 100644 --- a/python/types.py +++ b/python/types.py @@ -749,6 +749,10 @@ class TypeBuilder: def width(self) -> _int: return core.BNGetTypeBuilderWidth(self._handle) + @width.setter + def width(self, value: _int): + core.BNTypeBuilderSetWidth(self._handle, value) + def __len__(self): return self.width @@ -788,6 +792,10 @@ class TypeBuilder: def alignment(self) -> _int: return core.BNGetTypeBuilderAlignment(self._handle) + @alignment.setter + def alignment(self, alignment: _int): + core.BNTypeBuilderSetAlignment(self._handle, alignment) + @property def child(self) -> 'Type': type_conf = core.BNGetTypeBuilderChildType(self._handle) -- cgit v1.3.1