CHROMA
Classes | Functions | Variables
CRC48 Namespace Reference

Classes

struct  CRC48_t
 

Functions

void initCRC48 (CRC48_t &acc)
 
void calcCRC48 (CRC48_t &acc, const void *dataPtr, int count)
 
void getCRC48 (const CRC48_t &acc, void *dataPtr, int count)
 

Variables

static CRC48_t initializer = {{0x33, 0xa5, 0x57, 0xdf, 0xf1, 0xec}}
 
static CRC48_t generator = {{0x28, 0x35, 0x09, 0x71, 0xdb, 0xea}}
 
static CRC48_t complement = {{0xcc, 0x5a, 0x57, 0xdf, 0x0e, 0x13}}
 

Function Documentation

◆ calcCRC48()

void CRC48::calcCRC48 ( CRC48_t acc,
const void *  dataPtr,
int  count 
)

Definition at line 94 of file crc48.cc.

References Octave::count, CRC48::CRC48_t::crc, CRCARRAYSIZE, CRCHIGHBIT, generator, i, and Chroma::p.

◆ getCRC48()

void CRC48::getCRC48 ( const CRC48_t acc,
void *  dataPtr,
int  count 
)

Definition at line 132 of file crc48.cc.

References complement, Octave::count, CRC48::CRC48_t::crc, CRCARRAYSIZE, i, and Chroma::p.

◆ initCRC48()

void CRC48::initCRC48 ( CRC48_t acc)

Definition at line 87 of file crc48.cc.

References initializer.

Variable Documentation

◆ complement

CRC48_t CRC48::complement = {{0xcc, 0x5a, 0x57, 0xdf, 0x0e, 0x13}}
static

Definition at line 42 of file crc48.cc.

Referenced by getCRC48().

◆ generator

CRC48_t CRC48::generator = {{0x28, 0x35, 0x09, 0x71, 0xdb, 0xea}}
static

◆ initializer

CRC48_t CRC48::initializer = {{0x33, 0xa5, 0x57, 0xdf, 0xf1, 0xec}}
static

Definition at line 40 of file crc48.cc.

Referenced by initCRC48().