| 26 | namespace internal { |
| 27 | |
| 28 | inline size_t FNVHash(const char* text, const size_t byteLength, |
| 29 | const size_t FNV_prime, const size_t FNV_offset_basis) { |
| 30 | size_t hash = FNV_offset_basis; |
| 31 | for (const char* pstr = text; pstr < text + byteLength; pstr++) { |
| 32 | hash ^= *pstr; |
| 33 | hash *= FNV_prime; |
| 34 | } |
| 35 | return hash; |
| 36 | } |
| 37 | |
| 38 | template <int> size_t FNVHash(const char* text, const size_t byteLength); |
| 39 |
no outgoing calls
no test coverage detected