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

Method get_annotation_subset

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

Source from the content-addressed store, hash-verified

83}
84
85void RowData::get_annotation_subset(std::vector<pv::data::decode::Annotation*> &dest,
86 uint64_t start_sample, uint64_t end_sample)
87{
88 std::lock_guard<std::mutex> lock(_global_visitor_mutex);
89
90 for (Annotation *p : _annotations)
91 {
92 if (p->end_sample() > start_sample && p->start_sample() <= end_sample)
93 {
94 dest.push_back(p);
95 }
96 }
97}
98
99uint64_t RowData::get_annotation_index(uint64_t start_sample)
100{

Callers

nothing calls this directly

Calls 2

end_sampleMethod · 0.80
start_sampleMethod · 0.80

Tested by

no test coverage detected