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

Method refreshLines

examples/triage/byte.cpp:280–298  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278
279
280void ByteView::refreshLines()
281{
282 uint64_t addr = m_topAddr;
283 m_lines.clear();
284 m_topLine = 0;
285 m_bottomAddr = m_topAddr;
286 updateRanges();
287 if (m_allocatedLength > 0x7fffffff)
288 m_scrollBarMultiplier = (m_allocatedLength / 0x7fffffff) + 1;
289 else
290 m_scrollBarMultiplier = 1;
291 m_updatingScrollBar = true;
292 verticalScrollBar()->setRange(0, (int)((m_allocatedLength - 1) / m_scrollBarMultiplier));
293 verticalScrollBar()->setValue((int)(getContiguousOffsetForAddress(addr) / m_scrollBarMultiplier));
294 m_updatingScrollBar = false;
295 updateCache();
296 viewport()->update();
297 UIContext::updateStatus();
298}
299
300
301void ByteView::refreshAtCurrentLocation()

Callers

nothing calls this directly

Calls 3

viewportFunction · 0.85
clearMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected