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

Method _range_action

python/plugin.py:152–158  ·  view source on GitHub ↗
(view, addr, length, action)

Source from the content-addressed store, hash-verified

150
151 @staticmethod
152 def _range_action(view, addr, length, action):
153 try:
154 file_metadata = filemetadata.FileMetadata(handle=core.BNGetFileForView(view))
155 view_obj = binaryview.BinaryView(file_metadata=file_metadata, handle=core.BNNewViewReference(view))
156 action(view_obj, addr, length)
157 except:
158 log_error(traceback.format_exc())
159
160 @staticmethod
161 def _function_action(view, func, action):

Callers 1

register_for_rangeMethod · 0.80

Calls 3

log_errorFunction · 0.85
FileMetadataMethod · 0.80
BinaryViewMethod · 0.80

Tested by

no test coverage detected