diff options
| author | Rusty Wagner <rusty@vector35.com> | 2016-10-24 19:00:23 -0400 |
|---|---|---|
| committer | Rusty Wagner <rusty@vector35.com> | 2016-10-24 19:00:23 -0400 |
| commit | 6b307f7cad00e4d89e5ed66b9d67e374078f8b95 (patch) | |
| tree | 9f0c432dc816690c78bf0fb2e3c6c3b36ce752ae /python | |
| parent | 5cfb38e1c3178195935b969201dd7e42419ea671 (diff) | |
Add platform property to function
Diffstat (limited to 'python')
| -rw-r--r-- | python/__init__.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/python/__init__.py b/python/__init__.py index 6db17545..8176b8e6 100644 --- a/python/__init__.py +++ b/python/__init__.py @@ -4789,6 +4789,14 @@ class Function(object): return Architecture(arch) @property + def platform(self): + """Function platform (read-only)""" + platform = core.BNGetFunctionPlatform(self.handle) + if platform is None: + return None + return Platform(None, handle = platform) + + @property def start(self): """Function start (read-only)""" return core.BNGetFunctionStart(self.handle) |
