Show / Hide Table of Contents

Method Hash.Fnv1Long(+ 4 overloads)


Overload

64-bit FNV-1 hash.

public static long Fnv1Long(ReadOnlySpan<char> data)
Parameters
data  (ReadOnlySpan<char>)
Returns
long

Overload(next)

64-bit FNV-1 hash.

public static long Fnv1Long(char* data, int lengthChars)
Parameters
data  (char*)
lengthChars  (int)
Returns
long

Overload(next)

64-bit FNV-1 hash.

public static long Fnv1Long(ReadOnlySpan<byte> data)
Parameters
data  (ReadOnlySpan<byte>)

Data. See also: System.Runtime.InteropServices.MemoryMarshal.AsBytes<T>, System.Runtime.InteropServices.CollectionsMarshal.AsSpan<T>.

Returns
long

Overload(next)

64-bit FNV-1 hash.

public static long Fnv1Long(byte* data, int lengthBytes)
Parameters
data  (byte*)
lengthBytes  (int)
Returns
long

Overload(top)

64-bit FNV-1 hash.

public static long Fnv1Long<T>(T data) where T : unmanaged
Parameters
data  (T)
Returns
long
Type Parameters
T