diff options
| author | plafosse <peter@vector35.com> | 2016-10-28 20:41:40 -0400 |
|---|---|---|
| committer | plafosse <peter@vector35.com> | 2016-10-28 20:41:40 -0400 |
| commit | 18e7e9378a4d7dff8140ed35eb47ce7993bd850b (patch) | |
| tree | c78882aa02a668637fb33124ae20f34a25e461f1 /python/function.py | |
| parent | 5e4cca1f1796bec109adacdb049d9e34c17656eb (diff) | |
| parent | b5eacc14097def2367b650fc4a9377d4910441eb (diff) | |
Merging with dev
Diffstat (limited to 'python/function.py')
| -rw-r--r-- | python/function.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/python/function.py b/python/function.py index 37364840..2910d283 100644 --- a/python/function.py +++ b/python/function.py @@ -212,6 +212,14 @@ class Function(object): return architecture.Architecture(arch) @property + def platform(self): + """Function platform (read-only)""" + platform = core.BNGetFunctionPlatform(self.handle) + if platform is None: + return None + return platform.Platform(None, handle = platform) + + @property def start(self): """Function start (read-only)""" return core.BNGetFunctionStart(self.handle) |
