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

Method _notify

python/binaryview.py:592–598  ·  view source on GitHub ↗
(view: core.BNBinaryViewHandle, callback: BinaryViewEventCallback)

Source from the content-addressed store, hash-verified

590
591 @staticmethod
592 def _notify(view: core.BNBinaryViewHandle, callback: BinaryViewEventCallback) -> None:
593 try:
594 file_metadata = filemetadata.FileMetadata(handle=core.BNGetFileForView(view))
595 view_obj = BinaryView(file_metadata=file_metadata, handle=core.BNNewViewReference(view))
596 callback(view_obj)
597 except:
598 log_error(traceback.format_exc())
599
600
601@dataclass(frozen=True)

Callers 1

registerMethod · 0.45

Calls 3

log_errorFunction · 0.85
FileMetadataMethod · 0.80
BinaryViewClass · 0.70

Tested by

no test coverage detected