You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* A 32 bit hasher class used for hashing an arbitrary stream of bytes
252
+
* Instances of `hasher_32` usually represent state that is changed while hashing data.
253
+
* `hasher_32` provides a fairly basic interface for retrieving the generated hash.
254
+
* `hasher_32` used all functions in `hud` namespace like `hud::hash_32(const u32 value)`, `hud::hash_32(const ansichar *const value)` or `hud::combine_32(u64 a, u64 b)`.
255
+
* If you want to hash a user defined type, add your `hud::hash_my_type(my_type& t)` function and just call `hasher_32::operator()`
256
+
*/
257
+
classhasher_32
267
258
{
259
+
public:
260
+
/** Hash the value and combine the value with the current hasher value. */
u32 state_ {0}; // Default is 0, but can be a seed
276
283
};
277
284
285
+
/**
286
+
* A 64 bit hasher class used for hashing an arbitrary stream of bytes
287
+
* Instances of `hasher_64` usually represent state that is changed while hashing data.
288
+
* `hasher_64` provides a fairly basic interface for retrieving the generated hash.
289
+
* `hasher_64` used all functions in `hud` namespace like `hud::hash_64(const u32 value)`, `hud::hash_64(const ansichar *const value)` or `hud::combine_64(u64 a, u64 b)`.
290
+
* If you want to hash a user defined type, add your `hud::hash_my_type(my_type& t)` function and just call `hasher_64::operator()`
291
+
*/
278
292
structhasher_64
279
293
{
294
+
public:
295
+
/** Hash the value and combine the value with the current hasher value. */
0 commit comments