Edytuj

Udostępnij za pośrednictwem


XxHash128.Hash Method

Definition

Overloads

Hash(Byte[])

Computes the XXH128 hash of the provided source data.

Hash(Byte[], Int64)

Computes the XXH128 hash of the provided data using the provided seed.

Hash(ReadOnlySpan<Byte>, Int64)

Computes the XXH128 hash of the provided source data using the optionally provided seed.

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

Computes the XXH128 hash of the provided source data into the provided destination using the optionally provided seed.

Hash(Byte[])

Source:
XxHash128.cs
Source:
XxHash128.cs
Source:
XxHash128.cs

Computes the XXH128 hash of the provided source data.

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()

Parameters

source
Byte[]

The data to hash.

Returns

Byte[]

The XXH128 128-bit hash code of the provided data.

Exceptions

source is null.

Applies to

Hash(Byte[], Int64)

Source:
XxHash128.cs
Source:
XxHash128.cs
Source:
XxHash128.cs

Computes the XXH128 hash of the provided data using the provided seed.

public:
 static cli::array <System::Byte> ^ Hash(cli::array <System::Byte> ^ source, long seed);
public static byte[] Hash (byte[] source, long seed);
static member Hash : byte[] * int64 -> byte[]
Public Shared Function Hash (source As Byte(), seed As Long) As Byte()

Parameters

source
Byte[]

The data to hash.

seed
Int64

The seed value for this hash computation.

Returns

Byte[]

The XXH128 128-bit hash code of the provided data.

Exceptions

source is null.

Applies to

Hash(ReadOnlySpan<Byte>, Int64)

Source:
XxHash128.cs
Source:
XxHash128.cs
Source:
XxHash128.cs

Computes the XXH128 hash of the provided source data using the optionally provided seed.

public static byte[] Hash (ReadOnlySpan<byte> source, long seed = 0);
static member Hash : ReadOnlySpan<byte> * int64 -> byte[]
Public Shared Function Hash (source As ReadOnlySpan(Of Byte), Optional seed As Long = 0) As Byte()

Parameters

source
ReadOnlySpan<Byte>

The data to hash.

seed
Int64

The seed value for this hash computation. The default is zero.

Returns

Byte[]

The XXH128 128-bit hash code of the provided data.

Applies to

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

Source:
XxHash128.cs
Source:
XxHash128.cs
Source:
XxHash128.cs

Computes the XXH128 hash of the provided source data into the provided destination using the optionally provided seed.

public static int Hash (ReadOnlySpan<byte> source, Span<byte> destination, long seed = 0);
static member Hash : ReadOnlySpan<byte> * Span<byte> * int64 -> int
Public Shared Function Hash (source As ReadOnlySpan(Of Byte), destination As Span(Of Byte), Optional seed As Long = 0) As Integer

Parameters

source
ReadOnlySpan<Byte>

The data to hash.

destination
Span<Byte>

The buffer that receives the computed 128-bit hash code.

seed
Int64

The seed value for this hash computation. The default is zero.

Returns

The number of bytes written to destination.

Exceptions

destination is shorter than the number of bytes produced from this hash algorithm (16 bytes).

Applies to