Functions | |
uint32_t | point_one::fusion_engine::messages::CalculateCRC (const void *buffer) |
Calculate the CRC for the message (header + payload) contained in the buffer. More... | |
uint32_t | point_one::fusion_engine::messages::CalculateCRC (const void *buffer, size_t length, uint32_t initial_value=0) |
Calculate the CRC for the message (payload) contained in the buffer. More... | |
bool | point_one::fusion_engine::messages::IsValid (const void *buffer) |
Check if the message contained in the buffer has a valid CRC. More... | |
P1_EXPORT uint32_t point_one::fusion_engine::messages::CalculateCRC | ( | const void * | buffer | ) |
Calculate the CRC for the message (header + payload) contained in the buffer.
buffer | A byte buffer containing a MessageHeader and payload. |
P1_EXPORT uint32_t point_one::fusion_engine::messages::CalculateCRC | ( | const void * | buffer, |
size_t | length, | ||
uint32_t | initial_value = 0 |
||
) |
|
inline |
Check if the message contained in the buffer has a valid CRC.
buffer | A byte buffer containing a MessageHeader and payload. |
true
if the CRC value in the header matches the CRC computed from the current contents.