diff options
| author | Rusty Wagner <rusty@vector35.com> | 2017-07-18 00:20:01 -0400 |
|---|---|---|
| committer | Rusty Wagner <rusty@vector35.com> | 2017-07-18 00:20:01 -0400 |
| commit | bf9d72bbae638a42f0b93a9053dffcb1f5e79ff3 (patch) | |
| tree | d51024630f854d32782a2e24e584fb43557b542c /python/types.py | |
| parent | 18083837fe452a91e457f02ed8be2abf5fc66877 (diff) | |
Add instruction for indirect structure access
Diffstat (limited to 'python/types.py')
| -rw-r--r-- | python/types.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/python/types.py b/python/types.py index 5933661a..ab3fb337 100644 --- a/python/types.py +++ b/python/types.py @@ -332,6 +332,11 @@ class Type(object): """Type count (read-only)""" return core.BNGetTypeElementCount(self.handle) + @property + def offset(self): + """Offset into structure (read-only)""" + return core.BNGetTypeOffset(self.handle) + def __str__(self): return core.BNGetTypeString(self.handle) |
