MCPcopy Create free account
hub / github.com/DreamSourceLab/DSView / get_cursor_index_by_key

Method get_cursor_index_by_key

DSView/pv/view/view.cpp:1473–1485  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1471}
1472
1473int View::get_cursor_index_by_key(uint64_t key)
1474{
1475 auto &lst = get_cursorList();
1476
1477 int dex = 0;
1478 for (auto c : lst){
1479 if (c->get_key() == key){
1480 return dex;
1481 }
1482 ++dex;
1483 }
1484 return -1;
1485}
1486
1487void View::check_calibration()
1488{

Callers 1

update_decode_rangeMethod · 0.80

Calls 1

get_keyMethod · 0.80

Tested by

no test coverage detected