32 #ifndef ACE_COMMON_HASH_DJB2_H
33 #define ACE_COMMON_HASH_DJB2_H
36 #include "../fstrings/FlashString.h"
37 class __FlashStringHelper;
39 namespace ace_common {
57 hash = ((hash << 5) + hash) + c;
77 inline uint32_t
hashDjb2(
const __FlashStringHelper* fs) {
78 return hashDjb2Template<FlashString>(
FlashString(fs));
A thin wrapper around a (const __FlashStringHelper*) so that it acts exactly like a (const char*) wit...
uint32_t hashDjb2Template(T s)
Implement the djb2 hash algorithm as described in https://stackoverflow.com/questions/7666509 and htt...
uint32_t hashDjb2(const char *s)
Type checked version of hashDjb2Template(T s) for a regular c-string (const uint8_t*) terminated by N...