Gemstone IO Library
Show/Hide TOC

# ChecksumExtensionsXor64Checksum Method

Calculates quad-word length (64-bit) XOR-based check-sum on specified portion of a buffer.

## Definition

Namespace: Gemstone.IO.Checksums.ChecksumExtensions
Assembly: Gemstone.IO (in Gemstone.IO.dll) Version: 1.0.160 -- Release Build+169caca5192ac5075949df0220a553c99300004a
C#
View Source Request Example

    public static ulong Xor64Checksum(
    	this byte[] data,
    	int startIndex,
    	int length
    )

VB
View Source Request Example

    <ExtensionAttribute>
    Public Shared Function Xor64Checksum (
    	data As Byte(),
    	startIndex As Integer,
    	length As Integer
    ) As ULong

C++
View Source Request Example

    public:
    [ExtensionAttribute]
    static unsigned long long Xor64Checksum(
    	array<unsigned char>^ data,
    	int startIndex,
    	int length
    )

JavaScript
View Source Request Example

    Gemstone.IO.Checksums.ChecksumExtensions.ChecksumExtensions.Xor64Checksum = function(data, startIndex, length);

#### Parameters

data Byte
  Data buffer to perform XOR check-sum on.
startIndex Int32
  Starts index in data buffer to begin XOR check-sum.
length Int32
  Total number of bytes from startIndex to perform XOR check-sum over.

#### Return Value

UInt64
Quad-word length XOR check-sum.

#### Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Byte. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

## See Also

#### Reference

ChecksumExtensions Class
Gemstone.IO.Checksums.ChecksumExtensions Namespace