|
ldas-tools-framecpp 3.0.4
|
Compute CRC checksum with length encoding. More...
#include <cksum.hh>


Public Types | |
| typedef CRC | crc_type |
| CRC algorithm. | |
| typedef std::size_t | size_type |
| Type which holds the number of bytes processed. | |
| typedef uint32_t | value_type |
| Type to hold the calculated checksum. | |
| typedef CRC | crc_type |
| CRC algorithm. | |
| typedef std::size_t | size_type |
| Type which holds the number of bytes processed. | |
| typedef uint32_t | value_type |
| Type to hold the calculated checksum. | |
Public Member Functions | |
| void | process_bytes (void const *buffer, size_type byte_count) |
| Updates the interim CRC. | |
| value_type | checksum () const |
| Retrieve the CRC value. | |
| void | reset () |
| Allow the stucture to be reused. | |
| void | process_bytes (void const *buffer, size_type byte_count) |
| Updates the interim CRC. | |
| value_type | checksum () const |
| Retrieve the CRC value. | |
| void | reset () |
| Allow the stucture to be reused. | |
Private Member Functions | |
| void | finalize () |
| Finish calculating the checksum. | |
| void | finalize () |
| Finish calculating the checksum. | |
Private Attributes | |
| size_type | length = 0 |
| Number of bytes processed. | |
| bool | finished = false |
| Keep track of state. | |
Compute CRC checksum with length encoding.
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 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.
|
inline |
|
inline |
|
inlineprivate |
|
inlineprivate |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
Keep track of state.
|
private |
Number of bytes processed.