MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / FindSdChannel

Method FindSdChannel

lib/mdflib/mdflib/src/cg4block.cpp:690–704  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

688}
689
690Cn4Block *Cg4Block::FindSdChannel() const {
691 auto cn_list = Channels();
692 const auto itr =
693 std::find_if(cn_list.begin(), cn_list.end(),
694 [](const auto* channel) {
695 return channel != nullptr &&
696 channel->Type() == ChannelType::VariableLength &&
697 channel->VlsdRecordId() == 0;
698 });
699
700 if (itr == cn_list.end()) {
701 return nullptr;
702 }
703 return dynamic_cast<Cn4Block*>(*itr);
704}
705
706Cn4Block *Cg4Block::FindVlsdChannel(uint64_t record_id) const {
707 auto cn_list = Channels();

Callers 4

SaveQueueMethod · 0.80
CleanQueueCompressedMethod · 0.80
SaveQueueMethod · 0.80
CleanQueueCompressedMethod · 0.80

Calls 3

beginMethod · 0.80
VlsdRecordIdMethod · 0.80
TypeMethod · 0.45

Tested by

no test coverage detected