![]() |
NDEVR
API Documentation
|
Logic for generating checksums based on initial value and a type. More...
Public Member Functions | |
| CheckSumGenerator () | |
| Constructs a CheckSumGenerator with default initial values. | |
| t_hash_type | getCheckSum () |
| Returns the current computed checksum value. | |
| template<class t_type, class t_allocator, class t_memory_manager> | |
| void | update (const Buffer< t_type, t_allocator, t_memory_manager > &buffer) |
| Updates the checksum by processing all elements in the given buffer. | |
| template<class t_type, class t_allocator, class t_memory_manager> | |
| void | update (const Buffer< t_type, t_allocator, t_memory_manager > &buffer, uint04 max_size) |
| Updates the checksum by processing elements in the buffer up to a maximum count. | |
| template<> | |
| void | update (const t_hash_type &hash_value) |
| Specialization that directly incorporates a hash-type value into the checksum. | |
| template<class t_type> | |
| void | update (const t_type &object) |
| Updates the checksum with a single object by splitting it into hash-type-sized chunks. | |
Logic for generating checksums based on initial value and a type.
Checksums can be used to validate data or data streams.
Definition at line 43 of file CheckSumGenerator.h.
|
inline |
Returns the current computed checksum value.
Definition at line 128 of file CheckSumGenerator.h.
References m_checksum.
|
inline |
Updates the checksum by processing all elements in the given buffer.
| [in] | buffer | The buffer of elements to incorporate into the checksum. |
Definition at line 58 of file CheckSumGenerator.h.
References m_checksum, and update().
|
inline |
Updates the checksum by processing elements in the buffer up to a maximum count.
| [in] | buffer | The buffer of elements to incorporate into the checksum. |
| [in] | max_size | The maximum number of elements to process from the buffer. |
Definition at line 75 of file CheckSumGenerator.h.
|
inline |
Specialization that directly incorporates a hash-type value into the checksum.
| [in] | hash_value | The value to fold into the running checksum. |
Definition at line 120 of file CheckSumGenerator.h.
References m_checksum.
|
inline |
Updates the checksum with a single object by splitting it into hash-type-sized chunks.
| [in] | object | The object to incorporate into the checksum. |
Definition at line 88 of file CheckSumGenerator.h.
References type_buffer, and update().