CRC lookup table. After construction, the CRC parameters are fixed.
More...
#include <CRC.h>
template<typename CRCType, uint16_t 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 166 of file CRC.h.
◆ Table()
template<typename CRCType , uint16_t CRCWidth>
Constructs a CRC table from a set of CRC parameters.
- Parameters
-
| [in] | parameters | CRC parameters |
- Template Parameters
-
| CRCType | Integer type for storing the CRC result |
| CRCWidth | Number of bits in the CRC |
Definition at line 327 of file CRC.h.
◆ GetParameters()
template<typename CRCType , uint16_t 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 355 of file CRC.h.
Referenced by CRC::Calculate().
◆ GetTable()
template<typename CRCType , uint16_t 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 367 of file CRC.h.
◆ operator[]()
template<typename CRCType , uint16_t CRCWidth>
| CRCType CRC::Table< CRCType, CRCWidth >::operator[] |
( |
unsigned char |
index | ) |
const |
|
inline |
Gets an entry in the CRC table.
- Parameters
-
- Template Parameters
-
| CRCType | Integer type for storing the CRC result |
| CRCWidth | Number of bits in the CRC |
- Returns
- CRC table entry
Definition at line 380 of file CRC.h.
The documentation for this struct was generated from the following file:
- /root/ACloudViewer/plugins/core/IO/qE57IO/extern/libE57Format/extern/CRCpp/inc/CRC.h