Skip to content

Struct CRC::Table

template <typename CRCType, uint16_t CRCWidth>

ClassList > CRC > Table

CRC lookup table. After construction, theCRC parameters are fixed.More...

  • #include <CRC.h>

Public Functions

Type Name
const Parameters< CRCType, CRCWidth > & GetParameters () const
Gets the CRC parameters used to construct theCRC table.
const CRCType * GetTable () const
Gets the CRC table.
Table (const Parameters< CRCType, CRCWidth > & parameters)
Constructs a CRC table from a set ofCRC parameters.
CRCType operator[] (unsigned char index) const
Gets an entry in the CRC table.

Detailed Description

Note:

A CRC table can be used for multiple CRC calculations.

Public Functions Documentation

function GetParameters

Gets the CRC parameters used to construct theCRC table.

inline const  Parameters < CRCType , CRCWidth > & CRC::Table::GetParameters () const

Template parameters:

  • CRCType Integer type for storing the CRC result
  • CRCWidth Number of bits in the CRC

Returns:

CRC parameters


function GetTable

Gets the CRC table.

inline const  CRCType * CRC::Table::GetTable () const

Template parameters:

  • CRCType Integer type for storing the CRC result
  • CRCWidth Number of bits in the CRC

Returns:

CRC table


function Table

Constructs a CRC table from a set ofCRC parameters.

inline CRC::Table::Table (
    const  Parameters < CRCType , CRCWidth > & parameters
) 

Parameters:

  • params CRC parameters

Template parameters:

  • CRCType Integer type for storing the CRC result
  • CRCWidth Number of bits in the CRC

function operator[]

Gets an entry in the CRC table.

inline CRCType CRC::Table::operator[] (
    unsigned  char index
) const

Parameters:

  • index Index into the CRC table

Template parameters:

  • CRCType Integer type for storing the CRC result
  • CRCWidth Number of bits in the CRC

Returns:

CRC table entry



The documentation for this class was generated from the following file cubrid/src/base/CRC.h