|
framework
|
Modular sum writer. More...
#include <framework/serializable/streams/modular_sum.hpp>
Public Member Functions | |
| template<std::size_t N> | |
| bool | write (char const *s) |
| Write bytes. | |
| bool | write (char const *s, std::size_t n) |
| Write bytes. | |
| uint64_t | checksum () const |
| Get checksum. More... | |
| void | reset () |
| Reset. | |
Modular sum writer.
Computes the 8*Bytes bit one's complement sum of the bytes written to this stream.
| Bytes | number of bytes to use in the sum |
| Order | input byte endianness |
|
inline |
Get checksum.
Returns the checksum, defined as the complement of the current sum.
1.8.3.1-20130402