Utility.ComputeCRC Method

Computes a cyclic redundancy check (CRC) from the specified byte array buffer.

Namespace: Microsoft.SPOT.Hardware
Assembly: Microsoft.SPOT.Hardware (in microsoft.spot.hardware.dll)

public static UInt32 ComputeCRC (
         byte[] buf,
         int offset,
         int length,
         UInt32 crc


A buffer of data from which the CRC is computed.
The offset from the beginning of the specified array to the beginning of the data to be checked.
The number of bytes of data to be checked, starting from the offset. The value -1 indicates that all data in the buffer starting from the offset is to be checked.
A seed for the CRC calculation.

Return Value

A CRC value.

This method uses the IEEE 802.3 CRC-32 Zmodem protocol to compute the CRC.

Available in .NET Micro Framework version 2.0, 2.5