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