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

Method _handle

python/collaboration/merge.py:223–231  ·  view source on GitHub ↗
(self, ctxt: ctypes.c_void_p, keys: ctypes.POINTER(ctypes.c_char_p), conflicts: ctypes.POINTER(core.BNAnalysisMergeConflictHandle), count: int)

Source from the content-addressed store, hash-verified

221 Helper class that resolves conflicts
222 """
223 def _handle(self, ctxt: ctypes.c_void_p, keys: ctypes.POINTER(ctypes.c_char_p), conflicts: ctypes.POINTER(core.BNAnalysisMergeConflictHandle), count: int) -> bool:
224 try:
225 py_conflicts = {}
226 for i in range(count):
227 py_conflicts[core.pyNativeStr(keys[i])] = MergeConflict(handle=conflicts[i])
228 return self.handle(py_conflicts)
229 except:
230 traceback.print_exc(file=sys.stderr)
231 return False
232
233 @abc.abstractmethod
234 def handle(self, conflicts: Dict[str, MergeConflict]) -> bool:

Callers

nothing calls this directly

Calls 2

handleMethod · 0.95
MergeConflictClass · 0.70

Tested by

no test coverage detected