Provides a simple CRC32 checksum for a set of bytes
Syntax
Example
Library/Library.Test/TestCrc32.cs
C# | Copy Code |
---|
Assert.AreEqual("00000000", new Crc32().ToString());
Assert.AreEqual("00100100", new Crc32(0x00100100).ToString());
Assert.AreEqual("F0100100", new Crc32(unchecked((int)0xF0100100)).ToString()); |
VB.NET | Copy Code |
---|
Assert.AreEqual("00000000", New Crc32().ToString())
Assert.AreEqual("00100100", New Crc32(&H100100).ToString())
Assert.AreEqual("F0100100", New Crc32(DirectCast(&Hf0100100UI, Integer)).ToString()) |
Inheritance Hierarchy
Requirements
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7
See Also