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

Method _function_is_valid

python/plugin.py:277–287  ·  view source on GitHub ↗
(view, func, is_valid)

Source from the content-addressed store, hash-verified

275
276 @staticmethod
277 def _function_is_valid(view, func, is_valid):
278 try:
279 if is_valid is None:
280 return True
281 file_metadata = filemetadata.FileMetadata(handle=core.BNGetFileForView(view))
282 view_obj = binaryview.BinaryView(file_metadata=file_metadata, handle=core.BNNewViewReference(view))
283 func_obj = function.Function(view_obj, core.BNNewFunctionReference(func))
284 return is_valid(view_obj, func_obj)
285 except:
286 log_error(traceback.format_exc())
287 return False
288
289 @staticmethod
290 def _low_level_il_function_is_valid(view, func, is_valid):

Callers 1

register_for_functionMethod · 0.80

Calls 5

is_validFunction · 0.85
log_errorFunction · 0.85
FileMetadataMethod · 0.80
BinaryViewMethod · 0.80
FunctionMethod · 0.80

Tested by

no test coverage detected