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 .
variable initialValue¶
Initial CRC value.
variable polynomial¶
CRC polynomial.
variable reflectInput¶
true to reflect all input bytes
variable reflectOutput¶
true to reflect the output CRC (reflection occurs before the final XOR)
Public Functions Documentation¶
function MakeTable¶
Returns a CRC lookup table construct using theseCRC parameters.
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:
Returns:
CRC lookup table
The documentation for this class was generated from the following file cubrid/src/base/CRC.h