VectorNav C++ Library
Static Public Member Functions | List of all members
vn::data::integrity::Crc16 Class Reference

Helpful class for working with 16-bit CRCs. More...

#include <error_detection.h>

Static Public Member Functions

static uint16_t compute (const char data[], size_t length)
 Computes the 16-bit CRC of the provided data. More...
 

Detailed Description

Helpful class for working with 16-bit CRCs.

Member Function Documentation

static uint16_t vn::data::integrity::Crc16::compute ( const char  data[],
size_t  length 
)
static

Computes the 16-bit CRC of the provided data.

Parameters
[in]dataThe data array to compute the 16-bit CRC for.
[in]lengthThe length of data bytes from the array to compute the CRC over.
Returns
The computed CRC.

The documentation for this class was generated from the following file: