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

Method _default_action

python/plugin.py:134–140  ·  view source on GitHub ↗
(view, action)

Source from the content-addressed store, hash-verified

132
133 @staticmethod
134 def _default_action(view, action):
135 try:
136 file_metadata = filemetadata.FileMetadata(handle=core.BNGetFileForView(view))
137 view_obj = binaryview.BinaryView(file_metadata=file_metadata, handle=core.BNNewViewReference(view))
138 action(view_obj)
139 except:
140 log_error(traceback.format_exc())
141
142 @staticmethod
143 def _address_action(view, addr, action):

Callers 1

registerMethod · 0.80

Calls 3

log_errorFunction · 0.85
FileMetadataMethod · 0.80
BinaryViewMethod · 0.80

Tested by

no test coverage detected