ERIS CORE

◆ hash()

uint32_t FASTRUN SvcDataDictionary::hash ( const char *  s)
protected

hashing function used to accelerate searches

Parameters
s
Returns
uint32_t

Definition at line 45 of file svcDataDictionary.cpp.

45  {
46  //uint32 djb2 string hash
47  uint32_t h = 5381;
48  int c;
49  while (c = (*s++)){h = ((h << 5) + h) + c;}
50  return h;
51 }
const char PROGMEM s[][16]
Definition: Eris.h:246

References s.

Referenced by create(), increment(), read(), readf(), and update().

+ Here is the caller graph for this function: