CRC lookup table. After construction, the CRC parameters are fixed.
More...
#include <crc.h>
template<typename CRCType, crcpp_uint16 CRCWidth>
struct CRC::Table< CRCType, CRCWidth >
CRC lookup table. After construction, the CRC parameters are fixed.
- Note
- A CRC table can be used for multiple CRC calculations.
Definition at line 147 of file crc.h.
template<typename CRCType , crcpp_uint16 CRCWidth>
Constructs a CRC table from a set of CRC parameters.
- Parameters
-
- Template Parameters
-
CRCType | Integer type for storing the CRC result |
CRCWidth | Number of bits in the CRC |
Definition at line 326 of file crc.h.
template<typename CRCType , crcpp_uint16 CRCWidth>
Gets the CRC parameters used to construct the CRC table.
- Template Parameters
-
CRCType | Integer type for storing the CRC result |
CRCWidth | Number of bits in the CRC |
- Returns
- CRC parameters
Definition at line 354 of file crc.h.
template<typename CRCType , crcpp_uint16 CRCWidth>
const CRCType * CRC::Table< CRCType, CRCWidth >::GetTable |
( |
| ) |
const |
|
inline |
Gets the CRC table.
- Template Parameters
-
CRCType | Integer type for storing the CRC result |
CRCWidth | Number of bits in the CRC |
- Returns
- CRC table
Definition at line 366 of file crc.h.
template<typename CRCType , crcpp_uint16 CRCWidth>
void CRC::Table< CRCType, CRCWidth >::InitTable |
( |
| ) |
|
|
inlineprivate |
Initializes a CRC table.
- Template Parameters
-
CRCType | Integer type for storing the CRC result |
CRCWidth | Number of bits in the CRC |
Definition at line 390 of file crc.h.
template<typename CRCType , crcpp_uint16 CRCWidth>
CRCType CRC::Table< CRCType, CRCWidth >::operator[] |
( |
unsigned char |
index | ) |
const |
|
inline |
Gets an entry in the CRC table.
- Parameters
-
[in] | 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
Definition at line 379 of file crc.h.
template<typename CRCType, crcpp_uint16 CRCWidth>
CRC parameters used to construct the table.
Definition at line 187 of file crc.h.
template<typename CRCType, crcpp_uint16 CRCWidth>
CRCType CRC::Table< CRCType, CRCWidth >::table[1<< CHAR_BIT] |
|
private |
CRC lookup table.
Definition at line 188 of file crc.h.
The documentation for this struct was generated from the following file: