Method Hash32
Hash32(Byte*, Int32, UInt32)
Generate a 32-bit xxHash value.
Declaration
public static uint Hash32(byte *buffer, int bufferLength, uint seed = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Byte* | buffer | Input buffer. |
| Int32 | bufferLength | |
| UInt32 | seed | Optional seed. |
Returns
| Type | Description |
|---|---|
| UInt32 | 32-bit hash value. |
Hash32(System.IO.Stream, UInt32)
Generate a 32-bit xxHash value from a stream.
Declaration
public static uint Hash32(System.IO.Stream stream, uint seed = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IO.Stream | stream | Input stream. |
| UInt32 | seed | Optional seed. |
Returns
| Type | Description |
|---|---|
| UInt32 | 32-bit hash value. |