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

Method refreshLines

python/examples/triage/byte.py:257–273  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

255 return self.data.end
256
257 def refreshLines(self):
258 addr = self.topAddr
259 self.lines = []
260 self.topLine = 0
261 self.bottomAddr = self.topAddr
262 self.updateRanges()
263 if self.allocatedLength > 0x7fffffff:
264 self.scrollBarMultiplier = (self.allocatedLength // 0x7fffffff) + 1
265 else:
266 self.scrollBarMultiplier = 1
267 self.updatingScrollBar = True
268 self.verticalScrollBar().setRange(0, (self.allocatedLength - 1) // self.scrollBarMultiplier)
269 self.verticalScrollBar().setValue(self.getContiguousOffsetForAddress(addr) // self.scrollBarMultiplier)
270 self.updatingScrollBar = False
271 self.updateCache()
272 self.viewport().update()
273 UIContext.updateStatus()
274
275 def refreshAtCurrentLocation(self):
276 if self.topLine < len(self.lines):

Callers 6

navigateMethod · 0.95
adjustSizeMethod · 0.95
repositionCaretMethod · 0.95
scrollBarMovedMethod · 0.95
scrollBarActionMethod · 0.95

Calls 4

updateRangesMethod · 0.95
updateCacheMethod · 0.95
updateMethod · 0.45

Tested by

no test coverage detected