API Documentation
Loading...
Searching...
No Matches
CheckSumGenerator< t_hash_type > Class Template Reference

Logic for generating checksums based on initial value and a type. More...

#include <CheckSumGenerator.h>

Public Member Functions

 CheckSumGenerator ()
 
t_hash_type getCheckSum ()
 
template<class t_type , class t_allocator , class t_memory_manager >
void update (const Buffer< t_type, t_allocator, t_memory_manager > &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)
 
template<>
void update (const t_hash_type &hash_value)
 
template<class t_type >
void update (const t_type &object)
 

Public Attributes

t_hash_type m_checksum
 
t_hash_type type_buffer
 

Detailed Description

template<class t_hash_type>
class NDEVR::CheckSumGenerator< t_hash_type >

Logic for generating checksums based on initial value and a type.


Checksums can be used to validate data or data streams.

Constructor & Destructor Documentation

◆ CheckSumGenerator()

template<class t_hash_type >
CheckSumGenerator ( )
inline

Member Function Documentation

◆ getCheckSum()

template<class t_hash_type >
t_hash_type getCheckSum ( )
inline

◆ update() [1/4]

template<class t_hash_type >
template<class t_type , class t_allocator , class t_memory_manager >
void update ( const Buffer< t_type, t_allocator, t_memory_manager > & buffer)
inline

◆ update() [2/4]

template<class t_hash_type >
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 )
inline

◆ update() [3/4]

template<class t_hash_type >
template<>
void update ( const t_hash_type & hash_value)
inline

◆ update() [4/4]

template<class t_hash_type >
template<class t_type >
void update ( const t_type & object)
inline

Member Data Documentation

◆ m_checksum

template<class t_hash_type >
t_hash_type m_checksum

◆ type_buffer

template<class t_hash_type >
t_hash_type type_buffer

The documentation for this class was generated from the following file: