我需要将这些C函数转换为C#。只是想仔细检查一下我是否做得对。谢谢! C代码: unsigned short Crc;
unsigned short update_crc(unsigned short crc, char c) {
char i;
crc ^= (unsigned short)c<<8;
for (i=0; i<8; i++) {
i
在执行下面的代码 @crc=0xFFFFFFFF
@index=0
7.times { |n|
@[email protected]**@a[n]
@[email protected] >> 8
puts @crc
**@[email protected]**@reverse_crc[@index]** - this is the line i am getting above er