CRC_PARAMETERS(3)
π NAME π
CRC::Parameters< CRCType, CRCWidth > β it's the CRC parameters struct, bestie. The whole vibe of your CRC setup lives in here. π
β¨ SYNOPSIS β¨
#include <CRC.h>
πΈ Public Member Functions
Table< CRCType, CRCWidth > MakeTable () constβ hands you a CRC lookup table, built from these exact CRC parameters. π«Ά
π¦ Public Attributes
CRCType polynomialβ the CRC polynomial, aka the whole personality of your checksum. βCRCType initialValueβ the initial CRC value, where it all starts. π±CRCType finalXORβ the value you XOR with the final CRC at the end. π₯bool reflectInputβtrueto reflect all input bytes. πbool reflectOutputβtrueto reflect the output CRC (and heads up, the reflection happens before the final XOR, so don't come for me). π
π Detailed Description π
template<typename CRCType, crcpp_uint16 CRCWidth>
struct CRC::Parameters< CRCType, CRCWidth >
"CRC parameters." That's it, that's the struct. It's giving template, it's giving parameters, it's giving iconic. No cap. π
π§ Member Function Documentation π§
MakeTable
template<typename CRCType, crcpp_uint16 CRCWidth>
CRC::Table< CRCType, CRCWidth >
CRC::Parameters< CRCType, CRCWidth >::MakeTable () const
[inline]
Returns a CRC lookup table construct using these CRC parameters. Slay. β¨
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. iykyk. π
Template Parameters
CRCTypeβ Integer type for storing the CRC result.CRCWidthβ Number of bits in the CRC.
Returns
- CRC lookup table. periodt. π
π Member Data Documentation π
finalXOR
template<typename CRCType, crcpp_uint16 CRCWidth>
CRCType CRC::Parameters< CRCType, CRCWidth >::finalXOR
Value to XOR with the final CRC. π
initialValue
template<typename CRCType, crcpp_uint16 CRCWidth>
CRCType CRC::Parameters< CRCType, CRCWidth >::initialValue
Initial CRC value. π±
polynomial
template<typename CRCType, crcpp_uint16 CRCWidth>
CRCType CRC::Parameters< CRCType, CRCWidth >::polynomial
CRC polynomial. β
reflectInput
template<typename CRCType, crcpp_uint16 CRCWidth>
bool CRC::Parameters< CRCType, CRCWidth >::reflectInput
true to reflect all input bytes. π
reflectOutput
template<typename CRCType, crcpp_uint16 CRCWidth>
bool CRC::Parameters< CRCType, CRCWidth >::reflectOutput
true to reflect the output CRC (reflection occurs before the final XOR). π
π Author π
Generated automatically by Doxygen for CRC++ from the source code. Not a human, just a robot doing its thing. π€β¨
okay that's the whole page bestie, tysm for reading, mwah π
this little doc dropped from CRC++, version 1.0.1.0 β main character energy from the source code itself. stay hydrated, go build a table. ππΈπ¦
π¦ 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