ldas-tools-framecpp
2.9.3
|
Compute CRC checksum with length encoding. More...
#include <cksum.hh>
Public Types | |
typedef CRC | crc_type |
CRC algorithm. More... | |
typedef std::size_t | size_type |
Type which holds the number of bytes processed. More... | |
typedef uint32_t | value_type |
Type to hold the calculated checksum. More... | |
typedef CRC | crc_type |
CRC algorithm. More... | |
typedef std::size_t | size_type |
Type which holds the number of bytes processed. More... | |
typedef uint32_t | value_type |
Type to hold the calculated checksum. More... | |
typedef CRC | crc_type |
CRC algorithm. More... | |
typedef std::size_t | size_type |
Type which holds the number of bytes processed. More... | |
typedef uint32_t | value_type |
Type to hold the calculated checksum. More... | |
Public Member Functions | |
void | process_bytes (void const *buffer, size_type byte_count) |
Updates the interim CRC. More... | |
value_type | checksum () const |
Retrieve the CRC value. More... | |
void | reset () |
Allow the stucture to be reused. More... | |
void | process_bytes (void const *buffer, size_type byte_count) |
Updates the interim CRC. More... | |
value_type | checksum () const |
Retrieve the CRC value. More... | |
void | reset () |
Allow the stucture to be reused. More... | |
void | process_bytes (void const *buffer, size_type byte_count) |
Updates the interim CRC. More... | |
value_type | checksum () const |
Retrieve the CRC value. More... | |
void | reset () |
Allow the stucture to be reused. More... | |
Private Member Functions | |
void | finalize () |
Finish calculating the checksum. More... | |
void | finalize () |
Finish calculating the checksum. More... | |
void | finalize () |
Finish calculating the checksum. More... | |
Private Attributes | |
size_type | length = 0 |
Number of bytes processed. More... | |
bool | finished = false |
Keep track of state. More... | |
Compute CRC checksum with length encoding.
This implements the calculation of a CRC checksum with
This implements the calculation of a CRC checksum with
This implements the calculation of a CRC checksum with
typedef CRC FrameCPP::Common::cksum_impl< CRC >::crc_type |
CRC algorithm.
typedef CRC FrameCPP::Common::cksum_impl< CRC >::crc_type |
CRC algorithm.
typedef CRC FrameCPP::Common::cksum_impl< CRC >::crc_type |
CRC algorithm.
typedef std::size_t FrameCPP::Common::cksum_impl< CRC >::size_type |
Type which holds the number of bytes processed.
typedef std::size_t FrameCPP::Common::cksum_impl< CRC >::size_type |
Type which holds the number of bytes processed.
typedef std::size_t FrameCPP::Common::cksum_impl< CRC >::size_type |
Type which holds the number of bytes processed.
typedef uint32_t FrameCPP::Common::cksum_impl< CRC >::value_type |
Type to hold the calculated checksum.
typedef uint32_t FrameCPP::Common::cksum_impl< CRC >::value_type |
Type to hold the calculated checksum.
typedef uint32_t FrameCPP::Common::cksum_impl< CRC >::value_type |
Type to hold the calculated checksum.
|
inline |
|
inline |
|
inline |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
Keep track of state.
|
private |
Number of bytes processed.