![]() |
NDEVR
API Documentation
|
Computes hash values from arbitrary data using an FNV-like combining algorithm. More...
Public Member Functions | |
| template<class t_type> | |
| void | hash (const Buffer< t_type > &value) |
| Hashes each element of a Buffer sequentially. | |
| void | hash (const char *value) |
| Hashes a null-terminated C string by hashing its character data. | |
| void | hash (const String &s) |
| Hashes a String by hashing its character data. | |
| void | hash (const StringView &value) |
| Hashes a StringView by hashing its character data. | |
| template<class t_type> | |
| void | hash (const t_type &value) |
| Hashes an arbitrary value by hashing its raw memory representation. | |
| uint08 | hashValue () const |
| Returns the current accumulated hash value. | |
Computes hash values from arbitrary data using an FNV-like combining algorithm.
Definition at line 9 of file HashMaker.h.
|
inline |
Hashes each element of a Buffer sequentially.
| [in] | value | The buffer whose elements are hashed. |
Definition at line 50 of file HashMaker.h.
References hash().
|
inline |
Hashes a null-terminated C string by hashing its character data.
| [in] | value | The null-terminated string to hash. |
Definition at line 41 of file HashMaker.h.
References String::str_len().
|
inline |
Hashes a String by hashing its character data.
| [in] | s | The string to hash. |
Definition at line 25 of file HashMaker.h.
|
inline |
Hashes a StringView by hashing its character data.
| [in] | value | The string view to hash. |
Definition at line 33 of file HashMaker.h.
References StringView::begin(), and StringView::size().
|
inline |
Hashes an arbitrary value by hashing its raw memory representation.
| [in] | value | The value to hash. |
Definition at line 17 of file HashMaker.h.
Referenced by hash().
|
inline |
Returns the current accumulated hash value.
Definition at line 59 of file HashMaker.h.