Class CRC16

This static class provides functions that calculate CRC-16 values.

System.Object
  Stonefield.Library.CRC16
public static class CRC16 : object

Remarks

This was adapted from http://sanity-free.org/133/crc_16_ccitt_in_csharp.html. http://sanity-free.org/134/standard_crc_16_in_csharp.html has a different one. This returns the same value as the VFP SYS(2007, value)

Class Members

MemberDescription

ComputeChecksum

Computes the checksum for the specified byte array.

public static UInt16 ComputeChecksum(Byte[] bytes)

public static UInt16 ComputeChecksum(string value)

ComputeChecksumBytes

Computes the checksum as bytes for the specified bytes.

public static Byte[] ComputeChecksumBytes(Byte[] bytes)

Requirements

Namespace: Stonefield.Library
Assembly: library.dll