SASC
DVBSoftCAM

SI::CRCSection Class Reference

#include <si.h>

Inheritance diagram for SI::CRCSection:

List of all members.

Public Member Functions

 CRCSection (const unsigned char *data, bool doCopy=true)
 CRCSection ()
bool isCRCValid ()
bool CheckCRCAndParse ()

Detailed Description

Definition at line 217 of file si.h.


Constructor & Destructor Documentation

SI::CRCSection::CRCSection ( const unsigned char *  data,
bool  doCopy = true 
) [inline]

Definition at line 220 of file si.h.

: Section(data, doCopy) {}
SI::CRCSection::CRCSection ( ) [inline]

Definition at line 221 of file si.h.

{}

Member Function Documentation

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)*/);
}

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines