diff options
| author | Glenn Smith <glenn@vector35.com> | 2024-05-20 20:18:52 -0400 |
|---|---|---|
| committer | Glenn Smith <glenn@vector35.com> | 2024-05-23 18:12:05 -0400 |
| commit | 3375478963786425457931027834955525009658 (patch) | |
| tree | 33375aa2cfc2650bc27b231a69ba64787b849978 /python/types.py | |
| parent | 7e1e001b7b07285913d05a0dea31fba99395ca02 (diff) | |
Add TypeBuilder::SetWidth and TypeBuilder::SetAlignment
Diffstat (limited to 'python/types.py')
| -rw-r--r-- | python/types.py | 8 |
1 files changed, 8 insertions, 0 deletions
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) |
