MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / indexOf

Method indexOf

gui/qt/debugger/hexwidget.cpp:108–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108int HexWidget::indexOf(const QByteArray &ba) {
109 int res = m_data.indexOf(ba, m_cursorOffset / 2 + 1);
110 if (res >= 0) {
111 m_selectStart = res;
112 m_selectLen = ba.size();
113 m_selectEnd = m_selectStart + m_selectLen - 1;
114 setCursorOffset(res * 2, false);
115 }
116 return res;
117}
118
119int HexWidget::indexNotOf(const QByteArray &ba) {
120 int res = -1;

Callers 4

addKeyHistoryDockMethod · 0.80
memSearchEditMethod · 0.80
addVisualizerDockMethod · 0.80
addMemDockMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected