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

Method navigate

examples/triage/byte.cpp:191–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189
190
191bool ByteView::navigate(uint64_t addr)
192{
193 if (addr < getStart())
194 return false;
195 if (addr > getEnd())
196 return false;
197 m_cursorAddr = getStart();
198 for (auto& i : m_ranges)
199 {
200 if (i.start > addr)
201 break;
202 if (addr > i.end)
203 m_cursorAddr = i.end;
204 else if (addr >= i.start)
205 m_cursorAddr = addr;
206 else
207 m_cursorAddr = i.start;
208 }
209 setTopToAddress(m_cursorAddr);
210 refreshLines();
211 showContextAroundTop();
212 selectNone();
213 repositionCaret();
214 return true;
215}
216
217
218void ByteView::updateFonts()

Callers 6

clickEventMethod · 0.45
stringDoubleClickedMethod · 0.45
entryDoubleClickedMethod · 0.45
importDoubleClickedMethod · 0.45
exportDoubleClickedMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected