COMMS
Template library intended to help with implementation of communication protocols.
|
#include "comms/protocol/checksum/BasicSum.h"
Summary of all bytes checksum calculator.
The checksum calculator class that sums all the bytes and returns the result as a checksum value.
TResult | Type of the checksum result value. |
TInitValue | Initial value |
Public Member Functions | |
template<typename TIter > | |
TResult | operator() (TIter &iter, std::size_t len) const |
Operator that is invoked to calculate the checksum value. | |
TResult comms::protocol::checksum::BasicSum< TResult, TInitValue >::operator() | ( | TIter & | iter, |
std::size_t | len | ||
) | const |
Operator that is invoked to calculate the checksum value.
[in,out] | iter | Input iterator, |
[in] | len | Number of bytes to summarise. |