StringTable.Hash

Namespace: SnowBank.Text · class

Helpers for Hash computation

Methods

CombineFnvHash

static int CombineFnvHash(int hashCode, char ch)

GetFnvHashCode

static int GetFnvHashCode(ReadOnlySpan<char> text)

static int GetFnvHashCode(StringBuilder text)

static int GetFnvHashCode(char ch)

static int GetFnvHashCode(ReadOnlySpan<byte> text, out bool isAscii)

Fields

FNV_OFFSET_BIAS

const int FNV_OFFSET_BIAS

The offset bias value used in the FNV-1a algorithm See http://en.wikipedia.org/wiki/Fowler%E2%80%93Noll%E2%80%93Vo_hash_function