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

Method clone

python/workflow.py:353–365  ·  view source on GitHub ↗

``clone`` Clone a new Workflow, copying all Activities and the execution strategy. :param str name: if specified, name the new Workflow, otherwise the name is copied from the original :param str activity: if specified, perform the clone operation using ``activity`` as the root :return: a n

(self, name: str = None, activity: ActivityType = "")

Source from the content-addressed store, hash-verified

351 return core.BNRegisterWorkflow(self.handle, str(configuration))
352
353 def clone(self, name: str = None, activity: ActivityType = "") -> "Workflow":
354 """
355 ``clone`` Clone a new Workflow, copying all Activities and the execution strategy.
356
357 :param str name: if specified, name the new Workflow, otherwise the name is copied from the original
358 :param str activity: if specified, perform the clone operation using ``activity`` as the root
359 :return: a new Workflow
360 :rtype: Workflow
361 """
362 if name is None:
363 name = ""
364 workflow = core.BNWorkflowClone(self.handle, str(name), str(activity))
365 return Workflow(handle=workflow)
366
367 def register_activity(self, activity: Activity, subactivities: List[ActivityType] = []) -> Optional[Activity]:
368 """

Callers 15

initMethod · 0.45
newMethod · 0.45
try_parse_infoMethod · 0.45
resolve_missing_ntrsMethod · 0.45
parse_typesMethod · 0.45
lookup_typeMethod · 0.45
handle_type_indexMethod · 0.45
handle_member_typeMethod · 0.45

Calls 1

WorkflowClass · 0.70

Tested by 1

test_bitfield_unionsFunction · 0.36