public static long calculateChecksum(byte[] data) {Checksum sum = new CRC32();sum.update(data, 0, data.length);return sum.getValue();}

public static long CalculateChecksum(byte[] data){CRC32 sum = new CRC32();return (long)sum.ByteCRC(ref data);}
