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

Method moveToStartOfLine

examples/triage/byte.cpp:943–958  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

941
942
943void ByteView::moveToStartOfLine(bool selecting)
944{
945 for (auto& i : m_lines)
946 {
947 if ((m_cursorAddr >= i.address) && (m_cursorAddr < (i.address + i.length)))
948 {
949 m_cursorAddr = i.address;
950 break;
951 }
952 }
953 if (!selecting)
954 selectNone();
955 repositionCaret();
956 if (m_selectionVisible || selecting)
957 viewport()->update();
958}
959
960
961void ByteView::moveToEndOfLine(bool selecting)

Callers

nothing calls this directly

Calls 2

viewportFunction · 0.85
updateMethod · 0.45

Tested by

no test coverage detected