summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorrose <47357290+rompse@users.noreply.github.com>2021-11-09 20:09:44 -0500
committerPeter LaFosse <peter@vector35.com>2022-01-17 12:11:20 -0500
commit9c7ed0cc4ebe08871a7b83e0f56a542c0f31f835 (patch)
treeef970623cda06a37fa2efc5e1b12105ef5766475 /python
parente621ce147bac7fefd1823986eb2acbccd29897d6 (diff)
Decompile to C
Diffstat (limited to 'python')
-rw-r--r--python/lineardisassembly.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/python/lineardisassembly.py b/python/lineardisassembly.py
index 42b7e333..c295841e 100644
--- a/python/lineardisassembly.py
+++ b/python/lineardisassembly.py
@@ -341,6 +341,12 @@ class LinearViewObject:
_settings = _settings.handle
return LinearViewObject(core.BNCreateLinearViewHighLevelILSSAForm(view.handle, _settings))
+ @staticmethod
+ def language_representation(view:'binaryview.BinaryView', settings:Optional['_function.DisassemblySettings'] = None) -> 'LinearViewObject':
+ _settings = settings
+ if _settings is not None:
+ _settings = _settings.handle
+ return LinearViewObject(core.BNCreateLinearViewLanguageRepresentation(view.handle, _settings))
class LinearViewCursor:
def __init__(self, root_object, handle = None):