summaryrefslogtreecommitdiff
path: root/python/types.py
diff options
context:
space:
mode:
authorRusty Wagner <rusty@vector35.com>2017-07-18 00:20:01 -0400
committerRusty Wagner <rusty@vector35.com>2017-07-18 00:20:01 -0400
commitbf9d72bbae638a42f0b93a9053dffcb1f5e79ff3 (patch)
treed51024630f854d32782a2e24e584fb43557b542c /python/types.py
parent18083837fe452a91e457f02ed8be2abf5fc66877 (diff)
Add instruction for indirect structure access
Diffstat (limited to 'python/types.py')
-rw-r--r--python/types.py5
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)