XxHash32.Hash 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Hash(Byte[]) |
計算所提供數據的 XxHash32 哈希。 |
Hash(Byte[], Int32) |
使用提供的種子計算所提供數據的 XxHash32 哈希。 |
Hash(ReadOnlySpan<Byte>, Int32) |
計算所提供數據的 XxHash32 哈希。 |
Hash(ReadOnlySpan<Byte>, Span<Byte>, Int32) |
將所提供數據的 XxHash32 哈希計算到提供的目的地。 |
Hash(Byte[])
- 來源:
- XxHash32.cs
- 來源:
- XxHash32.cs
- 來源:
- 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)
- 來源:
- XxHash32.cs
- 來源:
- XxHash32.cs
- 來源:
- 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)
- 來源:
- XxHash32.cs
- 來源:
- XxHash32.cs
- 來源:
- 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)
- 來源:
- XxHash32.cs
- 來源:
- XxHash32.cs
- 來源:
- 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
的位元組數。