6 references to ComputeHash32
System.Private.CoreLib (6)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\RandomizedStringEqualityComparer.cs (2)
82
return Marvin.
ComputeHash32
(
89
Marvin.
ComputeHash32
(
src\libraries\System.Private.CoreLib\src\System\Marvin.cs (1)
23
public static int ComputeHash32(ReadOnlySpan<byte> data, ulong seed) =>
ComputeHash32
(ref MemoryMarshal.GetReference(data), (uint)data.Length, (uint)seed, (uint)(seed >> 32));
src\libraries\System.Private.CoreLib\src\System\Marvin.OrdinalIgnoreCase.cs (1)
93
int hash =
ComputeHash32
(ref Unsafe.As<char, byte>(ref MemoryMarshal.GetReference(scratch)), (uint)charsWritten * 2, p0, p1);
src\libraries\System.Private.CoreLib\src\System\String.Comparison.cs (2)
758
return Marvin.
ComputeHash32
(ref Unsafe.As<char, byte>(ref _firstChar), (uint)_stringLength * 2 /* in bytes, not chars */, (uint)seed, (uint)(seed >> 32));
779
return Marvin.
ComputeHash32
(ref Unsafe.As<char, byte>(ref MemoryMarshal.GetReference(value)), (uint)value.Length * 2 /* in bytes, not chars */, (uint)seed, (uint)(seed >> 32));