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

Method get_annotation

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

Source from the content-addressed store, hash-verified

139
140
141bool RowData::get_annotation(Annotation *ann, uint64_t index)
142{
143 assert(ann);
144
145 std::lock_guard<std::mutex> lock(_global_visitor_mutex);
146
147 if (index < _annotations.size()) {
148 *ann = *_annotations[index]; //clone
149 return true;
150 } else {
151 return false;
152 }
153}
154
155} // decode
156} // data

Callers 1

list_annotationMethod · 0.80

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected