XxHash32.Hash 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
Hash(Byte[]) |
计算所提供的数据的 XxHash32 哈希。 |
Hash(Byte[], Int32) |
使用提供的种子计算所提供数据的 XxHash32 哈希。 |
Hash(ReadOnlySpan<Byte>, Int32) |
计算所提供的数据的 XxHash32 哈希。 |
Hash(ReadOnlySpan<Byte>, Span<Byte>, Int32) |
将所提供的数据的 XxHash32 哈希计算到提供的目标中。 |
Hash(Byte[])
- Source:
- XxHash32.cs
- Source:
- XxHash32.cs
- Source:
- XxHash32.cs
计算所提供的数据的 XxHash32 哈希。
public:
static cli::array <System::Byte> ^ Hash(cli::array <System::Byte> ^ source);
public static byte[] Hash (byte[] source);
static member Hash : byte[] -> byte[]
Public Shared Function Hash (source As Byte()) As Byte()
参数
- source
- Byte[]
要哈希的数据。
返回
Byte[]
所提供数据的 XxHash32 哈希。
例外
source
为 null
。
适用于
Hash(Byte[], Int32)
- Source:
- XxHash32.cs
- Source:
- XxHash32.cs
- Source:
- XxHash32.cs
使用提供的种子计算所提供数据的 XxHash32 哈希。
public:
static cli::array <System::Byte> ^ Hash(cli::array <System::Byte> ^ source, int seed);
public static byte[] Hash (byte[] source, int seed);
static member Hash : byte[] * int -> byte[]
Public Shared Function Hash (source As Byte(), seed As Integer) As Byte()
参数
- source
- Byte[]
要哈希的数据。
- seed
- Int32
此哈希计算的种子值。
返回
Byte[]
所提供数据的 XxHash32 哈希。
例外
source
为 null
。
适用于
Hash(ReadOnlySpan<Byte>, Int32)
- Source:
- XxHash32.cs
- Source:
- XxHash32.cs
- Source:
- XxHash32.cs
计算所提供的数据的 XxHash32 哈希。
public static byte[] Hash (ReadOnlySpan<byte> source, int seed = 0);
static member Hash : ReadOnlySpan<byte> * int -> byte[]
Public Shared Function Hash (source As ReadOnlySpan(Of Byte), Optional seed As Integer = 0) As Byte()
参数
- source
- ReadOnlySpan<Byte>
要哈希的数据。
- seed
- Int32
此哈希计算的种子值。 默认值为零。
返回
Byte[]
所提供数据的 XxHash32 哈希。
适用于
Hash(ReadOnlySpan<Byte>, Span<Byte>, Int32)
- Source:
- XxHash32.cs
- Source:
- XxHash32.cs
- Source:
- XxHash32.cs
将所提供的数据的 XxHash32 哈希计算到提供的目标中。
public static int Hash (ReadOnlySpan<byte> source, Span<byte> destination, int seed = 0);
static member Hash : ReadOnlySpan<byte> * Span<byte> * int -> int
Public Shared Function Hash (source As ReadOnlySpan(Of Byte), destination As Span(Of Byte), Optional seed As Integer = 0) As Integer
参数
- source
- ReadOnlySpan<Byte>
要哈希的数据。
- seed
- Int32
此哈希计算的种子值。 默认值为零。
返回
写入到 destination
的字节数。