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

Method insert_after

python/workflow.py:508–522  ·  view source on GitHub ↗

``insert_after`` Insert the list of ``activities`` after the specified ``activity`` and at the same level. :param str activity: the Activity node for which to insert ``activities`` after :param list[str] activities: the list of Activities to insert :return: True on success, False otherwise

(self, activity: ActivityType, activities: Union[List[str], str])

Source from the content-addressed store, hash-verified

506 return core.BNWorkflowInsert(self.handle, str(activity), input_list, len(activities))
507
508 def insert_after(self, activity: ActivityType, activities: Union[List[str], str]) -> bool:
509 """
510 ``insert_after`` Insert the list of ``activities`` after the specified ``activity`` and at the same level.
511
512 :param str activity: the Activity node for which to insert ``activities`` after
513 :param list[str] activities: the list of Activities to insert
514 :return: True on success, False otherwise
515 :rtype: bool
516 """
517 if isinstance(activities, str):
518 activities = [activities]
519 input_list = (ctypes.c_char_p * len(activities))()
520 for i in range(0, len(activities)):
521 input_list[i] = str(activities[i]).encode('charmap')
522 return core.BNWorkflowInsertAfter(self.handle, str(activity), input_list, len(activities))
523
524 def remove(self, activity: ActivityType) -> bool:
525 """

Callers 1

Calls 1

encodeMethod · 0.80

Tested by

no test coverage detected