Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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 the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, and 4.1.

Community Additions

© 2015 Microsoft