VectorNav .NET Library
Static Public Member Functions | List of all members
VectorNav.Data.Integrity.Crc16 Class Reference

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

Static Public Member Functions

static UInt16 Compute (byte[] buffer, int index, int length)
 Computes the 16-bit CRC16-CCITT CRC of the data. More...
 

Detailed Description

Helpful class for working with 16-bit CRCs.

Member Function Documentation

static UInt16 VectorNav.Data.Integrity.Crc16.Compute ( byte[]  buffer,
int  index,
int  length 
)
static

Computes the 16-bit CRC16-CCITT CRC of the data.

Parameters
bufferBuffer containing the data to compute the CRC on.
indexThe index to start computing the CRC at.
lengthThe number of bytes to include in the CRC.
Returns
The computed 8-bit CRC16-CCITT CRC.

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