我正在尝试使用C#生成一个有效的PPP帧检查序列(FCS)。我已经实施的代码基于this answer。 public static class Crc16
{
const ushort polynomial = 0x8408;
static readonly ushort[] fcstab = new ushort[256];
// This is the fc
我有我的计算的字节数组CRC16一个C#代码: public static byte[] CalculateCRC(byte[] data)
{
ushort crc = 0;
ushort temp = 0;
for (int i = 0; i < data.Length; i++)
{
ushort value = (u