Witam,
czy ktoś mógłby mi to przetłumaczyć do c#?
unsigned long LongCrc( unsigned char *ptr )
{
long i ;
unsigned long CRC;
CRC = 0;
for (i=0 ; i<(x * 132) ; i++)
{
if (CRC & 0x80000000) CRC = (CRC << 1) | 0x00000001 ;
else CRC = (CRC << 1) ;
CRC ^= *ptr++;
}
return CRC ;
}