CRC_TABLE(3)

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

πŸ’– 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 > &parameters) β€” Constructs a CRC table from a set of CRC parameters.
  • Table (Parameters< CRCType, CRCWidth > &&parameters) β€” 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 result
  • CRCWidth β€” 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 result
  • CRCWidth β€” 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 result
  • CRCWidth β€” 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 result
  • CRCWidth β€” 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 result
  • CRCWidth β€” 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 result
  • CRCWidth β€” 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