HashCode<T>.Combine(ReadOnlySpan<T>) Method

Definition

Gets a content hash from the input ReadOnlySpan<T> instance using the xxHash32 algorithm.

public static int Combine (ReadOnlySpan<T> span);
static member Combine : ReadOnlySpan<'T (requires 'T : struct)> -> int
static member Combine : ReadOnlySpan<'T> -> int
Public Shared Function Combine (span As ReadOnlySpan(Of T)) As Integer

Parameters

span
ReadOnlySpan<T>

The input ReadOnlySpan<T> instance

Returns

The xxHash32 value for the input ReadOnlySpan<T> instance

Remarks

The xxHash32 is only guaranteed to be deterministic within the scope of a single app execution

Applies to