Method Hash
Hash(void*, int)
Returns a (non-cryptographic) hash of a memory block.
Declaration
public static uint Hash(void* ptr, int bytes)
Parameters
Type | Name | Description |
---|---|---|
void* | ptr | A buffer. |
int | bytes | The number of bytes to hash. |
Returns
Type | Description |
---|---|
uint | A hash of the bytes. |
Remarks
The hash function used is djb2.