34template <
typename TResult = std::u
int8_t, TResult TInitValue = 0>
43 template <
typename TIter>
46 using ByteType =
typename std::make_unsigned<
47 typename std::decay<
decltype(*iter)>::type
50 TResult checksum = TInitValue;
51 for (
auto idx = 0U; idx < len; ++idx) {
52 checksum =
static_cast<TResult
>(checksum +
static_cast<ByteType
>(*iter));
Summary of all bytes checksum calculator.
Definition BasicSum.h:36
TResult operator()(TIter &iter, std::size_t len) const
Operator that is invoked to calculate the checksum value.
Definition BasicSum.h:44
Main namespace for all classes / functions of COMMS library.