Go to the documentation of this file.
49 for (
size_t i = 0; i < buf_length; i++)
71 bool isValid(
const std::vector<uint8_t>& message)
bool isValid(const std::vector< uint8_t > &message)
Validates whether the calculated CRC of the SBF block at hand matches the CRC field of the streamed S...
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...
Declares the functions to compute and validate the CRC of a buffer.
static const std::array< uint16_t, 256 > CRC_LOOK_UP
CRC look-up table for fast computation of the 16-bit CRC for SBF blocks.
uint16_t getLength(const std::vector< uint8_t > &message)
Get the length of the SBF message.
uint16_t getCrc(const std::vector< uint8_t > &message)
Get the CRC of the SBF message.
Declares utility functions used when parsing messages.
TF2SIMD_FORCE_INLINE tf2Scalar length(const Quaternion &q)