The CRC16 is used in iButton memory packet structure.
CRC16 is based on the polynomial = X^16 + X^15 + X^2 + 1.
Static Public Member Functions | |
static uint | compute (uint dataToCrc) |
Perform the CRC16 on the data element based on a zero seed. | |
static uint | compute (uint dataToCrc, uint seed) |
Perform the CRC16 on the data element based on the provided seed. | |
static uint | compute (byte[] dataToCrc) |
Perform the CRC16 on an array of data elements based on a zero seed. | |
static uint | compute (byte[] dataToCrc, int off, int len) |
Perform the CRC16 on an array of data elements based on a zero seed. | |
static uint | compute (byte[] dataToCrc, int off, int len, uint seed) |
Perform the CRC16 on an array of data elements based on the provided seed. | |
static uint | compute (byte[] dataToCrc, uint seed) |
Perform the CRC16 on an array of data elements based on the provided seed. |
static uint compute | ( | uint | dataToCrc | ) | [static] |
static uint compute | ( | uint | dataToCrc, | |
uint | seed | |||
) | [static] |
static uint compute | ( | byte[] | dataToCrc | ) | [static] |
static uint compute | ( | byte[] | dataToCrc, | |
int | off, | |||
int | len | |||
) | [static] |
static uint compute | ( | byte[] | dataToCrc, | |
int | off, | |||
int | len, | |||
uint | seed | |||
) | [static] |
Perform the CRC16 on an array of data elements based on the provided seed.
CRC16 is based on the polynomial = X^16 + X^15 + X^2 + 1.
dataToCrc | array of data elements on which to perform the CRC16 | |
off | offset into the data array | |
len | length of data to CRC16 | |
seed | seed to use for CRC16 |
static uint compute | ( | byte[] | dataToCrc, | |
uint | seed | |||
) | [static] |