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 ); }
public long CalculateCrc32() { var hash = new Crc32(); hash.Update( File.ReadAllBytes( CompiledSaveDataFile ) ); return hash.Value; }