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

Method append

python/interaction.py:1016–1030  ·  view source on GitHub ↗
(self, report)

Source from the content-addressed store, hash-verified

1014 return "<reports: %s>" % repr(list(self))
1015
1016 def append(self, report):
1017 if report.view is None:
1018 view = None
1019 else:
1020 view = report.view.handle
1021 if isinstance(report, PlainTextReport):
1022 core.BNAddPlainTextReportToCollection(self.handle, view, report.title, report.contents)
1023 elif isinstance(report, MarkdownReport):
1024 core.BNAddMarkdownReportToCollection(self.handle, view, report.title, report.contents, report.plaintext)
1025 elif isinstance(report, HTMLReport):
1026 core.BNAddHTMLReportToCollection(self.handle, view, report.title, report.contents, report.plaintext)
1027 elif isinstance(report, FlowGraphReport):
1028 core.BNAddGraphReportToCollection(self.handle, view, report.title, report.graph.handle)
1029 else:
1030 raise TypeError("expected report object")
1031
1032 def update(self, i, report):
1033 # if isinstance(report, PlainTextReport):

Callers 3

_get_choice_inputMethod · 0.45
_get_form_inputMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected