diff options
Diffstat (limited to 'python/types.py')
| -rw-r--r-- | python/types.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/python/types.py b/python/types.py index 19714d54..f1c032b3 100644 --- a/python/types.py +++ b/python/types.py @@ -421,6 +421,9 @@ class Type(object): result = core.BNGetTypeStackAdjustment(self.handle) return SizeWithConfidence(result.value, confidence = result.confidence) + def __len__(self): + return self.width + def __str__(self): platform = None if self.platform is not None: |
