CRC_TABLE(3)
π NAME π
CRC::Table< CRCType, CRCWidth > β it's giving CRC lookup table. The tea is: once you construct it, the CRC parameters are fixed. No take-backs, bestie. π
β¨ SYNOPSIS β¨
#include <CRC.h>
πΈ Public Member Functions πΈ
Table (const Parameters< CRCType, CRCWidth > ¶meters)β Constructs a CRC table from a set of CRC parameters.Table (Parameters< CRCType, CRCWidth > &¶meters)β Constructs a CRC table from a set of CRC parameters.const Parameters< CRCType, CRCWidth > & GetParameters () constβ Gets the CRC parameters used to construct the CRC table.const CRCType * GetTable () constβ Gets the CRC table.CRCType operator[] (unsigned char index) constβ Gets an entry in the CRC table.
π¦ Private Member Functions π¦
void InitTable ()β Initializes a CRC table.
π Private Attributes π
Parameters< CRCType, CRCWidth > parametersβ CRC parameters used to construct the table.CRCType table [1<< CHAR_BIT]β CRC lookup table.
π Detailed Description π
template<typename CRCType, crcpp_uint16 CRCWidth>
struct CRC::Table< CRCType, CRCWidth >
CRC lookup table. After construction, the CRC parameters are fixed. Like, permanently. It's locked in. π
Note π A CRC table can be used for multiple CRC calculations. Not me being reusable and efficient, we love a multitasking icon.
π§ Constructor & Destructor Documentation π§
template<typename CRCType, crcpp_uint16 CRCWidth> CRC::Table< CRCType, CRCWidth >::Table (const Parameters< CRCType, CRCWidth > & params) [inline]
Constructs a CRC table from a set of CRC parameters. Bestie, hand it your params and it does the thing. β¨
Parameters
paramsβ CRC parameters
Template Parameters
CRCTypeβ Integer type for storing the CRC resultCRCWidthβ Number of bits in the CRC
template<typename CRCType, crcpp_uint16 CRCWidth> CRC::Table< CRCType, CRCWidth >::Table (Parameters< CRCType, CRCWidth > && params) [inline]
Constructs a CRC table from a set of CRC parameters. Same vibe, but it's the rvalue-reference one, so it's lowkey stealing your params and moving them. π«Ά
Parameters
paramsβ CRC parameters
Template Parameters
CRCTypeβ Integer type for storing the CRC resultCRCWidthβ Number of bits in the CRC
π Member Function Documentation π
template<typename CRCType, crcpp_uint16 CRCWidth> const CRC::Parameters< CRCType, CRCWidth > & CRC::Table< CRCType, CRCWidth >::GetParameters () const [inline]
Gets the CRC parameters used to construct the CRC table. It's giving receipts. π§Ύ
Template Parameters
CRCTypeβ Integer type for storing the CRC resultCRCWidthβ Number of bits in the CRC
Returns
- CRC parameters
template<typename CRCType, crcpp_uint16 CRCWidth> const CRCType * CRC::Table< CRCType, CRCWidth >::GetTable () const [inline]
Gets the CRC table. Here's the whole thing, bestie, take it. π
Template Parameters
CRCTypeβ Integer type for storing the CRC resultCRCWidthβ Number of bits in the CRC
Returns
- CRC table
template<typename CRCType, crcpp_uint16 CRCWidth> void CRC::Table< CRCType, CRCWidth >::InitTable () [inline], [private]
Initializes a CRC table. This one is private, so it's not for you β it's the behind-the-scenes main character energy. Don't touch, fr fr. π
Template Parameters
CRCTypeβ Integer type for storing the CRC resultCRCWidthβ Number of bits in the CRC
template<typename CRCType, crcpp_uint16 CRCWidth> CRCType CRC::Table< CRCType, CRCWidth >::operator[] (unsigned char index) const [inline]
Gets an entry in the CRC table. Index in, entry out. Slay. π
Parameters
indexβ Index into the CRC table
Template Parameters
CRCTypeβ Integer type for storing the CRC resultCRCWidthβ Number of bits in the CRC
Returns
- CRC table entry
π Member Data Documentation π
template<typename CRCType, crcpp_uint16 CRCWidth> Parameters<CRCType, CRCWidth> CRC::Table< CRCType, CRCWidth >::parameters [private]
CRC parameters used to construct the table. Private, so mind your business (affectionately). π
template<typename CRCType, crcpp_uint16 CRCWidth> CRCType CRC::Table< CRCType, CRCWidth >::table[1<< CHAR_BIT] [private]
CRC lookup table. Also private. Also iconic. β
πΈ Author πΈ
Generated automatically by Doxygen for CRC++ from the source code. Not a human wrote this β the robots ate and left no crumbs. π€β¨
okay that's the whole page bestie, hope the vibe check passed π«Ά This was CRC::Table... CRCWidth >(3), from the Library Functions Manual, and it's CRC++ Version 1.0.1.0 β love u, bye! π
π¦ where this page comes from
- fedora 43: crcpp-devel 1.2.1.0-1.fc43 Β· BSD-3-Clause
- fedora 43: crcpp-devel 1.2.1.0-1.fc43 Β· BSD-3-Clause
- fedora 44: crcpp-devel 1.2.1.0-1.fc44 Β· BSD-3-Clause
- fedora 44: crcpp-devel 1.2.1.0-1.fc44 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms