Hash(void*, int)
Returns a (non-cryptographic) hash of a memory block.
Read time 1 minuteLast updated 14 days ago
Definition
- Type: Method
- Namespace: Unity.Collections
- Assembly: UnityEngine.ManagedKernelModule
public static uint Hash(void* ptr, int bytes)
Parameters
Returns
Type | Description |
|---|---|
| uint | A hash of the bytes. |
Remarks
The hash function used is <a href="http://web.archive.org/web/20190508211657/http://www.cse.yorku.ca/~oz/hash.html">djb2</a>.