CRC有非常多的模式,我没有全部都做,目前支持 CRC16-Modbus CRC16-X25 CRC32 使用方法 auto data = QByteArray::fromHex( "01 02 03 04 05" ); auto crc16ForModbus = JQChecksum::crc16ForModbus( data ); auto crc16ForX25 = JQChecksum::crc16ForX25( data ); auto crc32 = JQChecksum:
using System;using System.Collections.Generic;using System.IO;using System.Linq;using System.Text; namespace Common{ public class crc32test { public class FileToCRC32 { //CRC32编码表 private static UInt32[] Crc3