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

Function isStringChannel

app/src/MDF4/Player.cpp:56–64  ·  view source on GitHub ↗

* @brief Returns true when the channel stores text samples (string-typed MDF4 channel). */

Source from the content-addressed store, hash-verified

54 * @brief Returns true when the channel stores text samples (string-typed MDF4 channel).
55 */
56static bool isStringChannel(const mdf::IChannel* channel)
57{
58 if (!channel)
59 return false;
60
61 const auto type = channel->DataType();
62 return type == mdf::ChannelDataType::StringAscii || type == mdf::ChannelDataType::StringUTF8
63 || type == mdf::ChannelDataType::StringUTF16Le || type == mdf::ChannelDataType::StringUTF16Be;
64}
65
66/**
67 * @brief Observer class that caches channel values during MDF4 data reading

Callers 3

SampleCacheObserverMethod · 0.85
OnSampleMethod · 0.85
buildFrameIndexMethod · 0.85

Calls 1

DataTypeMethod · 0.45

Tested by

no test coverage detected