#include <stdint.h>
#include "../fstrings/FlashString.h"
Go to the source code of this file.
Implement the djb2 hash algorithm (http://www.cse.yorku.ca/~oz/hash.html) for normal strings and flash strings.
Definition in file djb2.h.
◆ hashDjb2() [1/2]
template<>
uint32_t ace_common::hashDjb2 |
( |
const __FlashStringHelper * |
fs | ) |
|
|
inline |
Specialization of hashDjb2(T s) for flash strings (const __FlashStringHelper*).
- Parameters
-
fs | NUL terminated string stored in Flash memory, cannot be nullptr |
Definition at line 70 of file djb2.h.
◆ hashDjb2() [2/2]
template<typename T >
uint32_t ace_common::hashDjb2 |
( |
T |
s | ) |
|