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

Method checksumIndex

app/src/DataModel/Editors/FrameParserModel.cpp:222–226  ·  view source on GitHub ↗

* @brief Returns the source's checksum algorithm as a combobox index. */

Source from the content-addressed store, hash-verified

220 * @brief Returns the source's checksum algorithm as a combobox index.
221 */
222int DataModel::FrameParserModel::checksumIndex() const
223{
224 const auto idx = IO::availableChecksums().indexOf(currentSource().checksumAlgorithm);
225 return idx >= 0 ? static_cast<int>(idx) : 0;
226}
227
228/**
229 * @brief Returns the source's frame start delimiter.

Callers

nothing calls this directly

Calls 1

indexOfMethod · 0.45

Tested by

no test coverage detected