Gemstone IO Library
Show/Hide TOC

# Xor16 Class

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

## Definition

Namespace: Gemstone.IO.Checksums
Assembly: Gemstone.IO (in Gemstone.IO.dll) Version: 1.0.152 -- Release Build+a7f60f5a7bdd000775ff7f713750a17782d3bcf2
C#
View Source Request Example

    public sealed class Xor16

VB
View Source Request Example

    Public NotInheritable Class Xor16

C++
View Source Request Example

    public ref class Xor16 sealed

JavaScript
View Source Request Example

    Gemstone.IO.Checksums.Xor16 = function();

    Type.createClass(
    	'Gemstone.IO.Checksums.Xor16');

Inheritance
  Object Xor16

## Constructors

Xor16 | Creates a new instance of the Xor16Bit class. The checksum starts off with a value of 0.

## Properties

Value | Returns the Xor 16-bit checksum computed so far.

## Methods

Equals | Determines whether the specified object is equal to the current object. (Inherited from Object)
GetHashCode | Serves as the default hash function. (Inherited from Object)
GetType | Gets the Type of the current instance. (Inherited from Object)
Reset | Resets the checksum to the initial value.
ToString | Returns a string that represents the current object. (Inherited from Object)
Update(Byte) | Updates the checksum with an array of bytes.
Update(UInt16) | Updates the checksum with a ushort value.
Update(Byte, Int32, Int32) | Updates the checksum with the bytes taken from the array.

## See Also

#### Reference

Gemstone.IO.Checksums Namespace