Method Hash64
Hash64(void*, long)
Compute a 64bits hash of a memory region
Declaration
public static uint2 Hash64(void* input, long length)
Parameters
Type | Name | Description |
---|---|---|
void* | input | The memory buffer, can't be null |
long | length | The length of the memory buffer, can be zero |
Returns
Type | Description |
---|---|
uint2 | The hash result |
Hash64<T>(in T)
Compute a 64bits hash from the contents of the input struct
Declaration
public static uint2 Hash64<T>(in T input) where T : unmanaged
Parameters
Type | Name | Description |
---|---|---|
T | input | The input struct that will be hashed |
Returns
Type | Description |
---|---|
uint2 | The hash result |
Type Parameters
Name | Description |
---|---|
T | The input type. |
Hash64(void*, long, ulong)
Compute a 64bits hash of a memory region using a given seed value
Declaration
public static uint2 Hash64(void* input, long length, ulong seed)
Parameters
Type | Name | Description |
---|---|---|
void* | input | The memory buffer, can't be null |
long | length | The length of the memory buffer, can be zero |
ulong | seed | The seed value to alter the hash computation from |
Returns
Type | Description |
---|---|
uint2 | The hash result |