Skip to content

Struct CRC::Parameters

template <typename CRCType, uint16_t CRCWidth>

ClassList > CRC > Parameters

CRC parameters.

  • #include <CRC.h>

Public Attributes

Type Name
CRCType finalXOR
Value to XOR with the final CRC .
CRCType initialValue
Initial CRC value.
CRCType polynomial
CRC polynomial.
bool reflectInput
true to reflect all input bytes
bool reflectOutput
true to reflect the output CRC (reflection occurs before the final XOR)

Public Functions

Type Name
Table< CRCType, CRCWidth > MakeTable () const
Returns a CRC lookup table construct using theseCRC parameters.

Public Attributes Documentation

variable finalXOR

Value to XOR with the final CRC .

CRCType CRC::Parameters< CRCType, CRCWidth >::finalXOR;


variable initialValue

Initial CRC value.

CRCType CRC::Parameters< CRCType, CRCWidth >::initialValue;


variable polynomial

CRC polynomial.

CRCType CRC::Parameters< CRCType, CRCWidth >::polynomial;


variable reflectInput

true to reflect all input bytes

bool CRC::Parameters< CRCType, CRCWidth >::reflectInput;


variable reflectOutput

true to reflect the output CRC (reflection occurs before the final XOR)

bool CRC::Parameters< CRCType, CRCWidth >::reflectOutput;


Public Functions Documentation

function MakeTable

Returns a CRC lookup table construct using theseCRC parameters.

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

Note:

This function primarily exists to allow use of the auto keyword instead of instantiating a table directly, since template parameters are not inferred in constructors.

Template parameters:

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

Returns:

CRC lookup table



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