MCPcopy Index your code
hub / github.com/DreamSourceLab/DSView / get_annotation_index

Method get_annotation_index

DSView/pv/data/decode/rowdata.cpp:99–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99uint64_t RowData::get_annotation_index(uint64_t start_sample)
100{
101 std::lock_guard<std::mutex> lock(_global_visitor_mutex);
102 uint64_t index = 0;
103
104 for (Annotation *p : _annotations){
105 if (p->start_sample() > start_sample)
106 break;
107 index++;
108 }
109
110 return index;
111}
112
113bool RowData::push_annotation(Annotation *a)
114{

Callers

nothing calls this directly

Calls 1

start_sampleMethod · 0.80

Tested by

no test coverage detected