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

Method __init__

python/examples/triage/imports.py:163–183  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

161
162class GenericImportsModel(QAbstractItemModel):
163 def __init__(self, data):
164 super(GenericImportsModel, self).__init__()
165 self.filterText = ""
166 self.allEntries = []
167 self.has_modules = False
168 self.name_col = 1
169 self.module_col = None
170 self.ordinal_col = None
171 self.total_cols = 2
172 self.sortCol = 0
173 self.sortOrder = Qt.AscendingOrder
174 for sym in data.get_symbols_of_type(SymbolType.ImportAddressSymbol):
175 self.allEntries.append(sym)
176 if str(sym.namespace) != "BNINTERNALNAMESPACE":
177 self.has_modules = True
178 if self.has_modules:
179 self.name_col = 3
180 self.module_col = 1
181 self.ordinal_col = 2
182 self.total_cols = 4
183 self.entries = list(self.allEntries)
184
185 def extendEntries(self, entries):
186 self.allEntries.extend(entries)

Callers

nothing calls this directly

Calls 3

get_symbols_of_typeMethod · 0.80
__init__Method · 0.45
appendMethod · 0.45

Tested by

no test coverage detected