vdr 2.7.2
SI::CRC32 Class Reference

#include <util.h>

Public Member Functions

 CRC32 (const char *d, int len, u_int32_t CRCvalue=0xFFFFFFFF)
 
bool isValid ()
 

Static Public Member Functions

static bool isValid (const char *d, int len, u_int32_t CRCvalue=0xFFFFFFFF)
 
static u_int32_t crc32 (const char *d, int len, u_int32_t CRCvalue)
 

Protected Attributes

const char * data
 
int length
 
u_int32_t value
 

Static Protected Attributes

static u_int32_t crc_table [256]
 

Detailed Description

Definition at line 145 of file util.h.

Constructor & Destructor Documentation

◆ CRC32()

SI::CRC32::CRC32 ( const char * d,
int len,
u_int32_t CRCvalue = 0xFFFFFFFF )

Definition at line 278 of file util.c.

Member Function Documentation

◆ crc32()

u_int32_t SI::CRC32::crc32 ( const char * d,
int len,
u_int32_t CRCvalue )
static

◆ isValid() [1/2]

bool SI::CRC32::isValid ( )
inline

Definition at line 148 of file util.h.

References crc32(), data, length, and value.

Referenced by SI::CRCSection::isCRCValid().

◆ isValid() [2/2]

static bool SI::CRC32::isValid ( const char * d,
int len,
u_int32_t CRCvalue = 0xFFFFFFFF )
inlinestatic

Definition at line 149 of file util.h.

References crc32().

Member Data Documentation

◆ crc_table

u_int32_t SI::CRC32::crc_table
staticprotected

Definition at line 152 of file util.h.

◆ data

const char* SI::CRC32::data
protected

Definition at line 154 of file util.h.

Referenced by isValid().

◆ length

int SI::CRC32::length
protected

Definition at line 155 of file util.h.

Referenced by isValid().

◆ value

u_int32_t SI::CRC32::value
protected

Definition at line 156 of file util.h.

Referenced by isValid().


The documentation for this class was generated from the following files: