TSDuck v3.40-4025
MPEG Transport Stream Toolkit
|
Cyclic Redundancy Check as used in MPEG sections. More...
#include <tsCRC32.h>
Public Types | |
enum | Validation { IGNORE = 0 , CHECK = 1 , COMPUTE = 2 } |
What to do with a CRC32. More... | |
Public Member Functions | |
CRC32 () | |
Default constructor. | |
CRC32 (const void *data, size_t size) | |
Constructor, compute the CRC32 of a data area. | |
void | add (const void *data, size_t size) |
Continue the computation of a data area, following a previous CRC32. | |
operator uint32_t () const | |
Convert to a 32-bit integer. | |
void | reset () |
Reset the CRC32 computation, restart a new computation. | |
uint32_t | value () const |
Get the value of the CRC32 as computed so far. | |
Cyclic Redundancy Check as used in MPEG sections.
|
inline |
Constructor, compute the CRC32 of a data area.
[in] | data | Address of area to analyze. |
[in] | size | Size in bytes of area to analyze. |
void ts::CRC32::add | ( | const void * | data, |
size_t | size | ||
) |
Continue the computation of a data area, following a previous CRC32.
[in] | data | Address of area to analyze. |
[in] | size | Size in bytes of area to analyze. |
uint32_t ts::CRC32::value | ( | ) | const |
|
inline |