Parameters
- b
Library/Library.Test/TestCrc64.cs
C# | Copy Code |
---|---|
Crc64 crc = new Crc64(); Assert.AreEqual(0, crc.Value); Assert.AreEqual(0, crc.GetHashCode()); crc.Add(0x1b); Assert.AreNotEqual(0, crc.Value); Assert.AreEqual((int)crc.Value ^ (int)(crc.Value >> 32), crc.GetHashCode()); |
VB.NET | Copy Code |
---|---|
Dim crc As New Crc64() Assert.AreEqual(0, crc.Value) Assert.AreEqual(0, crc.GetHashCode()) crc.Add(&H1b) Assert.AreNotEqual(0, crc.Value) Assert.AreEqual(DirectCast(crc.Value, Integer) Xor DirectCast((crc.Value >> 32), Integer), crc.GetHashCode()) |
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7