Skip to content

cb2be3a3 5621 b343 992c 8a2af7fbe6df

yy edited this page Oct 15, 2018 · 1 revision

XXHash32 Class

Represents the class which provides a implementation of the xxHash32 algorithm.

Inheritance Hierarchy

System.Object
  System.Security.Cryptography.HashAlgorithm
    YYProject.XXHash.XXHash32
Namespace: YYProject.XXHash
Assembly: YYProject.XXHash (in YYProject.XXHash.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#

public sealed class XXHash32 : HashAlgorithm

The XXHash32 type exposes the following members.

Constructors

 

Name Description
Public method XXHash32() Initializes a new instance of the XXHash32 class by default seed(0).
Public method XXHash32(UInt32) Initializes a new instance of the XXHash32 class, and sets the Seed to the specified value.
  Back to Top

Properties

 

Name Description
Public property CanReuseTransform Gets a value indicating whether the current transform can be reused. (Inherited from HashAlgorithm.)
Public property CanTransformMultipleBlocks When overridden in a derived class, gets a value indicating whether multiple blocks can be transformed. (Inherited from HashAlgorithm.)
Public property Hash Gets the value of the computed hash code. (Inherited from HashAlgorithm.)
Public property HashSize Gets the size, in bits, of the computed hash code. (Inherited from HashAlgorithm.)
Public property HashUInt32 Gets the UInt32 value of the computed hash code.
Public property InputBlockSize When overridden in a derived class, gets the input block size. (Inherited from HashAlgorithm.)
Public property OutputBlockSize When overridden in a derived class, gets the output block size. (Inherited from HashAlgorithm.)
Public property Seed Gets or sets the value of seed used by xxHash32 algorithm.
  Back to Top

Methods

 

Name Description
Public method Clear Releases all resources used by the HashAlgorithm class. (Inherited from HashAlgorithm.)
Public method ComputeHash(Stream) Computes the hash value for the specified Stream object. (Inherited from HashAlgorithm.)
Public method ComputeHash(Byte[]) Computes the hash value for the specified byte array. (Inherited from HashAlgorithm.)
Public method ComputeHash(Byte[], Int32, Int32) Computes the hash value for the specified region of the specified byte array. (Inherited from HashAlgorithm.)
Public methodStatic member Create() Creates an instance of XXHash32 class by default seed(0).
Public methodStatic member Create(String) Creates an instance of the specified implementation of XXHash32 algorithm. This method always throws NotSupportedException.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the type of the current instance. (Inherited from Object.)
Public method Initialize Initializes this instance for new hash computing. (Overrides HashAlgorithm.Initialize().)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method TransformBlock Computes the hash value for the specified region of the input byte array and copies the specified region of the input byte array to the specified region of the output byte array. (Inherited from HashAlgorithm.)
Public method TransformFinalBlock Computes the hash value for the specified region of the specified byte array. (Inherited from HashAlgorithm.)
  Back to Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

YYProject.XXHash Namespace

Clone this wiki locally