XxHash3 类

定义

提供用于生成 64 位哈希的 XXH3 哈希算法的实现。

public ref class XxHash3 sealed : System::IO::Hashing::NonCryptographicHashAlgorithm
public sealed class XxHash3 : System.IO.Hashing.NonCryptographicHashAlgorithm
type XxHash3 = class
    inherit NonCryptographicHashAlgorithm
Public NotInheritable Class XxHash3
Inherits NonCryptographicHashAlgorithm
继承

注解

对于将计算出的数字哈希值保留为字节的方法,该值按 Big Endian 字节顺序写入。

构造函数

XxHash3()

使用默认种子值 0 初始化 类的新实例 XxHash3

XxHash3(Int64)

使用指定的种子初始化 类的新实例 XxHash3

属性

HashLengthInBytes

获取从此哈希算法生成的字节数。

(继承自 NonCryptographicHashAlgorithm)

方法

Append(Byte[])

将 的内容 source 追加到已为当前哈希计算处理的数据中。

(继承自 NonCryptographicHashAlgorithm)
Append(ReadOnlySpan<Byte>)

将 的内容 source 追加到已为当前哈希计算处理的数据中。

Append(Stream)

将 的内容 stream 追加到已为当前哈希计算处理的数据中。

(继承自 NonCryptographicHashAlgorithm)
AppendAsync(Stream, CancellationToken)

异步读取 的内容 stream ,并将其追加到已为当前哈希计算处理的数据中。

(继承自 NonCryptographicHashAlgorithm)
Equals(Object)

确定指定对象是否等于当前对象。

(继承自 Object)
GetCurrentHash()

获取当前计算的哈希值,而不修改累积状态。

(继承自 NonCryptographicHashAlgorithm)
GetCurrentHash(Span<Byte>)

在不修改累积状态的情况下,将计算的哈希值写入 。destination

(继承自 NonCryptographicHashAlgorithm)
GetCurrentHashAsUInt64()

获取当前计算的哈希值,而不修改累积状态。

GetCurrentHashCore(Span<Byte>)

在派生类中重写时,将计算出的哈希值写入 到 destination ,而不修改累积状态。

(继承自 NonCryptographicHashAlgorithm)
GetHashAndReset()

获取当前计算的哈希值并清除累积状态。

(继承自 NonCryptographicHashAlgorithm)
GetHashAndReset(Span<Byte>)

将计算的哈希值写入 , destination 然后清除累积状态。

(继承自 NonCryptographicHashAlgorithm)
GetHashAndResetCore(Span<Byte>)

将计算的哈希值写入 , destination 然后清除累积状态。

(继承自 NonCryptographicHashAlgorithm)
GetHashCode()
已过时.

此方法不受支持,因此不应调用。 请改为调用 GetCurrentHash()GetHashAndReset()

(继承自 NonCryptographicHashAlgorithm)
GetType()

获取当前实例的 Type

(继承自 Object)
Hash(Byte[])

计算所提供 source 数据的 XXH3 哈希。

Hash(Byte[], Int64)

使用提供的种子计算所提供数据的 XXH3 哈希。

Hash(ReadOnlySpan<Byte>, Int64)

使用可选提供的 计算所提供sourceseed数据的 XXH3 哈希。

Hash(ReadOnlySpan<Byte>, Span<Byte>, Int64)

使用可选的 seed,将所提供的source数据的 XXH3 哈希计算到提供的 destination 中。

HashToUInt64(ReadOnlySpan<Byte>, Int64)

计算所提供数据的 XXH3 哈希。

MemberwiseClone()

创建当前 Object 的浅表副本。

(继承自 Object)
Reset()

将哈希计算重置为初始状态。

ToString()

返回表示当前对象的字符串。

(继承自 Object)
TryGetCurrentHash(Span<Byte>, Int32)

尝试在不修改累积状态的情况下将计算的哈希值写入 。destination

(继承自 NonCryptographicHashAlgorithm)
TryGetHashAndReset(Span<Byte>, Int32)

尝试将计算的哈希值写入 destination。 如果成功,则清除累积状态。

(继承自 NonCryptographicHashAlgorithm)
TryHash(ReadOnlySpan<Byte>, Span<Byte>, Int32, Int64)

尝试使用(可选)提供的 将所提供 source 数据的 XXH3 哈希计算到提供的 destinationseed中。

适用于