|
SASC
DVBSoftCAM
|
#include <si.h>
Inheritance diagram for SI::CRCSection:Public Member Functions | |
| CRCSection (const unsigned char *data, bool doCopy=true) | |
| CRCSection () | |
| bool | isCRCValid () |
| bool | CheckCRCAndParse () |
| SI::CRCSection::CRCSection | ( | const unsigned char * | data, |
| bool | doCopy = true |
||
| ) | [inline] |
| bool SI::CRCSection::CheckCRCAndParse | ( | ) |
Definition at line 61 of file si.c.
References SI::Parsable::CheckParse(), isCRCValid(), and SI::Object::isValid().
Referenced by cTpsAuHook::Process(), and cSatTimeHook::Process().
{
if (!isCRCValid())
return false;
CheckParse();
return isValid();
}
| bool SI::CRCSection::isCRCValid | ( | ) |
Definition at line 57 of file si.c.
References SI::Object::data, SI::CharArray::getData(), SI::Section::getLength(), and SI::Object::isValid().
Referenced by CheckCRCAndParse().
{
return CRC32::isValid((const char *)data.getData(), getLength()/*, data.FourBytes(getLength()-4)*/);
}