|
CUBRID Engine
latest
|
CRC lookup table. After construction, the CRC parameters are fixed. More...
#include <CRC.h>

Public Member Functions | |
| Table (const Parameters< CRCType, CRCWidth > ¶meters) | |
| Constructs a CRC table from a set of CRC parameters. More... | |
| const Parameters< CRCType, CRCWidth > & | GetParameters () const |
| Gets the CRC parameters used to construct the CRC table. More... | |
| const CRCType * | GetTable () const |
| Gets the CRC table. More... | |
| CRCType | operator[] (unsigned char index) const |
| Gets an entry in the CRC table. More... | |
Private Member Functions | |
| void | InitTable () |
| Initializes a CRC table. More... | |
Private Attributes | |
| Parameters< CRCType, CRCWidth > | parameters |
| CRC parameters used to construct the table. More... | |
| CRCType | table [1<< CHAR_BIT] |
| CRC lookup table. More... | |
CRC lookup table. After construction, the CRC parameters are fixed.
|
inline |
Constructs a CRC table from a set of CRC parameters.
| [in] | params | CRC parameters |
| CRCType | Integer type for storing the CRC result |
| CRCWidth | Number of bits in the CRC |
Definition at line 328 of file CRC.h.
References CRC::Table< CRCType, CRCWidth >::InitTable(), and CRC::Table< CRCType, CRCWidth >::parameters.
|
inline |
Gets the CRC parameters used to construct the CRC table.
| CRCType | Integer type for storing the CRC result |
| CRCWidth | Number of bits in the CRC |
Definition at line 356 of file CRC.h.
References CRC::Table< CRCType, CRCWidth >::parameters.
Referenced by CRC::Calculate(), and CRC::CalculateRemainder().

|
inline |
|
inlineprivate |
Initializes a CRC table.
| CRCType | Integer type for storing the CRC result |
| CRCWidth | Number of bits in the CRC |
Definition at line 392 of file CRC.h.
References crcpp_constexpr, CRC::Table< CRCType, CRCWidth >::parameters, and CRC::Table< CRCType, CRCWidth >::table.
Referenced by CRC::Table< CRCType, CRCWidth >::Table().

|
inline |
|
private |
CRC parameters used to construct the table.
Definition at line 189 of file CRC.h.
Referenced by CRC::Calculate(), CRC::CalculateRemainder(), CRC::CRC_16_ARC(), CRC::CRC_16_BUYPASS(), CRC::CRC_16_CCITTFALSE(), CRC::CRC_16_GENIBUS(), CRC::CRC_16_KERMIT(), CRC::CRC_16_X25(), CRC::CRC_16_XMODEM(), CRC::CRC_32(), CRC::CRC_32_BZIP2(), CRC::CRC_32_MPEG2(), CRC::CRC_32_POSIX(), CRC::CRC_8(), CRC::Table< CRCType, CRCWidth >::GetParameters(), CRC::Table< CRCType, CRCWidth >::InitTable(), and CRC::Table< CRCType, CRCWidth >::Table().
|
private |
CRC lookup table.
Definition at line 190 of file CRC.h.
Referenced by CRC::Table< CRCType, CRCWidth >::GetTable(), CRC::Table< CRCType, CRCWidth >::InitTable(), and CRC::Table< CRCType, CRCWidth >::operator[]().