Sisk

Class

HashCodeHelper

Namespace
Sisk.Core.Helpers
Assembly
Sisk.Core.dll

Provides helper methods for deterministic hash code generation and combination.

C#
public static class HashCodeHelper

Inheritance #

object ← HashCodeHelper

Inherited Members #

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Fields #

NameDescription
FnvHashThe offset basis used by the FNV‑1a algorithm.
FnvPrimeThe prime multiplier used by the FNV‑1a algorithm.

Methods #

NameDescription
Combine(params ReadOnlySpan<object?>)Combines the deterministic hash codes of a collection of objects into a single 64‑bit hash.
DeterministicHash(ReadOnlySpan<char>, ulong, ulong, int)Computes a deterministic 64‑bit hash for the supplied ReadOnlySpan of characters using the specified seed, prime, and step values.
DeterministicHash(ReadOnlySpan<char>)Computes a deterministic 64‑bit hash for the supplied ReadOnlySpan of characters.
DeterministicHash(string?)Computes a deterministic 64‑bit hash for the supplied String.
DeterministicHash(object?)Computes a deterministic 64‑bit hash for an arbitrary Object.

Type to search the documentation and the API reference.