return annotations_.back().end_sample();
}
+uint64_t RowData::get_annotation_count() const
+{
+ return annotations_.size();
+}
+
void RowData::get_annotation_subset(
vector<pv::data::decode::Annotation> &dest,
uint64_t start_sample, uint64_t end_sample) const
dest.push_back(annotation);
}
-void RowData::push_annotation(const Annotation &a)
+void RowData::emplace_annotation(srd_proto_data *pdata, const Row *row)
{
- annotations_.push_back(a);
+ annotations_.emplace_back(pdata, row);
}
} // namespace decode