search for: checksumcalc

Displaying 1 result from an estimated 1 matches for "checksumcalc".

2002 Jul 12
0
Problem with checksums
...ll it deos not work. Is there anything else I have to do? Thanks, Erik ============ code ============= CRC routine in C stolen from framing.c: tatic unsigned int crc_lookup[256]={ 0x00000000,0x04c11db7,0x09823b6e,0x0d4326d9, [...] 0xbcb4666d,0xb8757bda,0xb5365d03,0xb1f740b4}; extern void ChecksumCalc(unsigned int *crc_reg, char *buffer, unsigned int size){ unsigned int i; for(i=0;i<size;i++) *crc_reg=(*crc_reg<<8)^crc_lookup[((*crc_reg >>24)&0xff)^buffer[i]]; } <p>Delphi test code: type TByteArray = packed array of Byte; TCharArray = packed array of Char;...