CRC_PARAMETERS(3)

πŸ“¦ version 1.2.1.0, in fedora 43, fedora 44

πŸ’– 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 β€” true to reflect all input bytes. πŸ™ˆ
  • bool reflectOutput β€” true to 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