Exemple #1
0
 public void CRCworks()
 {
     var c = new Crc32();
     c.Update( System.IO.File.ReadAllBytes( @"C:\src\git\FixSpaz\TestProject1\data.d" ) );
     Assert.AreEqual( 1342032153, c.Value );
 }
Exemple #2
0
 public long CalculateCrc32()
 {
     var hash = new Crc32();
     hash.Update( File.ReadAllBytes( CompiledSaveDataFile ) );
     return hash.Value;
 }