CSharpTest.Net
Crc64 Structure
Members  Example  See Also  Send Feedback Download Help File
CSharpTest.Net.Library Assembly > CSharpTest.Net.IO Namespace : Crc64 Structure

Glossary Item Box

Provides a simple CRC64 checksum for a set of bytes using algorithm (CRC-64/XZ)

Syntax

Visual Basic (Declaration) 
Public Structure Crc64 
   Inherits System.ValueType
C# 
public struct Crc64 : System.ValueType 

Example

Library/Library.Test/TestCrc64.cs

C#Copy Code
Assert.AreEqual("0000000000000000", new Crc64().ToString());
Assert.AreEqual("0000000000100100", new Crc64(0x00100100).ToString());
Assert.AreEqual("FFFFFFFFF0100100", new Crc64(unchecked((int)0xF0100100)).ToString());
Assert.AreEqual("F010010011100110", new Crc64(unchecked((long)0xF010010011100110ul)).ToString());
VB.NETCopy Code
Assert.AreEqual("0000000000000000", New Crc64().ToString())
Assert.AreEqual("0000000000100100", New Crc64(&H100100).ToString())
Assert.AreEqual("FFFFFFFFF0100100", New Crc64(DirectCast(&Hf0100100UI, Integer)).ToString())
Assert.AreEqual("F010010011100110", New Crc64(DirectCast(&Hf010010011100110UL, Long)).ToString())

Inheritance Hierarchy

System.Object
   System.ValueType
      CSharpTest.Net.IO.Crc64

Requirements

Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7

See Also

Generated with Document! X 2011 by Innovasys