![]() |
SystemEX
Lacking
Additional generic collection types missing in .net
|
Public Member Functions | |
| BernsteinHash (Endian endian) | |
| Craate a new instance. | |
| Hash32 | Compute (FixedVector< byte > input, uint seed) |
| Computes a simple 32‑bit hash from the given byte sequence. | |
| Hash64 | ComputeLong (FixedVector< byte > input, ulong seed) |
| Computes a simple 64‑bit hash from the given byte sequence. | |
| SystemEx.Hash.BernsteinHash.BernsteinHash | ( | Endian | endian | ) |
Craate a new instance.
| endian | The suing endian for creating a hash |
| Hash32 SystemEx.Hash.BernsteinHash.Compute | ( | FixedVector< byte > | input, |
| uint | seed ) |
Computes a simple 32‑bit hash from the given byte sequence.
The hash starts with the provided seed and mixes each byte using a small multiplier (31), similar to traditional Bernstein/DJB hash variants.
Endian does not affect this algorithm directly; it is included for interface compatibility with other SystemEx hashers.
| input | The input data to hash. |
| seed | The seed value for the hash computation. |
Implements SystemEx.Hash.IHash.
| Hash64 SystemEx.Hash.BernsteinHash.ComputeLong | ( | FixedVector< byte > | input, |
| ulong | seed ) |
Computes a simple 64‑bit hash from the given byte sequence.
The hash starts with the provided seed and mixes each byte using a larger multiplier (1315423911), a common constant used in JSHash‑style Bernstein derivatives to improve diffusion in 64‑bit space.
Endian does not affect this algorithm directly; it is included for interface compatibility with other SystemEx hashers.
| input | The input data to hash. |
| seed | The seed value for the hash computation. |
Implements SystemEx.Hash.IHash.