44 for (
size_t i = 0; i < buf_length; i++)
46 crc = (crc << 8) ^ CRC_LOOK_UP[uint8_t( (crc >> 8) ^ buf[i])];
uint16_t compute16CCITT(const uint8_t *buf, size_t buf_length)
This function computes the CRC-8-CCITT (Cyclic Redundancy Check) of a buffer "buf" of "buf_length" by...
uint16_t getCrc(const uint8_t *buffer)
Get the CRC of the SBF message.
Declares the functions to compute and validate the CRC of a buffer.
bool isValid(const uint8_t *block)
Validates whether the calculated CRC of the SBF block at hand matches the CRC field of the streamed S...
uint16_t getLength(const uint8_t *buffer)
Get the length of the SBF message.
TF2SIMD_FORCE_INLINE tf2Scalar length(const Quaternion &q)
Declares utility functions used when parsing messages.