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

Method __init__

python/basedetection.py:58–69  ·  view source on GitHub ↗
(self, view: Union[str, os.PathLike, BinaryView])

Source from the content-addressed store, hash-verified

56 """
57
58 def __init__(self, view: Union[str, os.PathLike, BinaryView]) -> None:
59 if isinstance(view, str) or isinstance(view, os.PathLike):
60 view = BinaryView.load(str(view), update_analysis=False)
61
62 _handle = core.BNCreateBaseAddressDetection(view.handle)
63 assert _handle is not None, "core.BNCreateBaseAddressDetection returned None"
64 self._handle = _handle
65 self._view_arch = view.arch
66
67 self._scores = list()
68 self._confidence = 0
69 self._last_tested_base_address = None
70
71 def __del__(self):
72 if core is not None:

Callers

nothing calls this directly

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected