Edytuj

Udostępnij za pośrednictwem


SpanExtensions.GetDjb2HashCode<T>(Span<T>) Method

Definition

Gets a content hash from the input Span<T> instance using the Djb2 algorithm. For more info, see the documentation for GetDjb2HashCode<T>(ReadOnlySpan<T>).

public static int GetDjb2HashCode<T> (this Span<T> span);
static member GetDjb2HashCode : Span<'T> -> int
<Extension()>
Public Function GetDjb2HashCode(Of T) (span As Span(Of T)) As Integer

Type Parameters

T

The type of items in the input Span<T> instance.

Parameters

span
Span<T>

The input Span<T> instance.

Returns

The Djb2 value for the input Span<T> instance.

Remarks

The Djb2 hash is fully deterministic and with no random components.

Applies to