MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / _medium_level_il_function_action

Method _medium_level_il_function_action

python/plugin.py:193–203  ·  view source on GitHub ↗
(view, func, action)

Source from the content-addressed store, hash-verified

191
192 @staticmethod
193 def _medium_level_il_function_action(view, func, action):
194 try:
195 file_metadata = filemetadata.FileMetadata(handle=core.BNGetFileForView(view))
196 view_obj = binaryview.BinaryView(file_metadata=file_metadata, handle=core.BNNewViewReference(view))
197 owner = function.Function(view_obj, core.BNGetMediumLevelILOwnerFunction(func))
198 func_obj = mediumlevelil.MediumLevelILFunction(
199 owner.arch, core.BNNewMediumLevelILFunctionReference(func), owner
200 )
201 action(view_obj, func_obj)
202 except:
203 log_error(traceback.format_exc())
204
205 @staticmethod
206 def _medium_level_il_instruction_action(view, func, instr, action):

Calls 5

log_errorFunction · 0.85
FileMetadataMethod · 0.80
BinaryViewMethod · 0.80
FunctionMethod · 0.80
MediumLevelILFunctionMethod · 0.80

Tested by

no test coverage detected