![]() |
TSDuck v3.46-4965
MPEG Transport Stream Toolkit
|
#include <tsCRC32.h>
Public Types | |
| enum | Validation { IGNORE = 0 , CHECK = 1 , COMPUTE = 2 } |
Public Member Functions | |
| CRC32 () | |
| CRC32 (const void *data, size_t size) | |
| void | add (const void *data, size_t size) |
| operator uint32_t () const | |
| void | reset () |
| uint32_t | value () const |
Cyclic Redundancy Check as used in MPEG sections.
| ts::CRC32::CRC32 | ( | ) |
Default constructor.
|
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 |
|
inline |
Reset the CRC32 computation, restart a new computation.