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

Method ArraySize

lib/mdflib/mdflib/src/ichannel.cpp:1041–1054  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1039}
1040
1041uint64_t IChannel::ArraySize() const {
1042 const auto array_list = ChannelArrays();
1043 if (array_list.empty()) {
1044 return 1;
1045 }
1046
1047 uint64_t count = 1;
1048 for (const auto* array : array_list) {
1049 if (array != nullptr) {
1050 count *= array->NofArrayValues();
1051 }
1052 }
1053 return count;
1054}
1055
1056void IChannel::SetCnComment(const CnComment &cn_comment) {
1057 if (IMetaData* meta_data = CreateMetaData();

Callers 13

TEST_FFunction · 0.45
GetSampleUnsignedMethod · 0.45
GetSampleSignedMethod · 0.45
GetSampleFloatMethod · 0.45
GetSampleTextMethod · 0.45
ChannelObserverMethod · 0.45
OnSampleMethod · 0.45
GetSampleUnsignedMethod · 0.45
GetSampleSignedMethod · 0.45
GetSampleFloatMethod · 0.45
GetSampleTextMethod · 0.45
PrepareForWritingMethod · 0.45

Calls 2

emptyMethod · 0.80
NofArrayValuesMethod · 0.80

Tested by 1

TEST_FFunction · 0.36