CSharpTest.Net
Crc64 Constructor(Int64)
See Also  Example Send Feedback Download Help File
CSharpTest.Net.Library Assembly > CSharpTest.Net.IO Namespace > Crc64 Structure > Crc64 Constructor : Crc64 Constructor(Int64)

crc

Glossary Item Box

Resumes the computation of a CRC64 value

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal crc As Long _
)
C# 
public Crc64( 
   long crc
)

Parameters

crc

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())

Requirements

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

See Also

Generated with Document! X 2011 by Innovasys