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

Method SetChannelValues

lib/mdflib/include/mdf/ichannel.h:771–780  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

769
770template <typename T>
771void IChannel::SetChannelValues(const std::vector<T>& values) {
772 const auto array_size = ArraySize();
773 uint64_t index = 0;
774 for (const T& value : values) {
775 if (index < array_size) {
776 SetChannelValue(value, true, index);
777 }
778 ++index;
779 }
780}
781
782} // namespace mdf

Callers 1

TEST_FFunction · 0.80

Calls 1

SetChannelValueFunction · 0.85

Tested by 1

TEST_FFunction · 0.64