| 286 | |
| 287 | template<class CharT = char> |
| 288 | LAZY_IMPORTER_FORCEINLINE unsigned hash(const CharT* str, unsigned offset) noexcept |
| 289 | { |
| 290 | unsigned value = offset; |
| 291 | |
| 292 | for(;;) { |
| 293 | char c = *str++; |
| 294 | if(!c) |
| 295 | return value; |
| 296 | value = hash_single(value, c); |
| 297 | } |
| 298 | } |
| 299 | |
| 300 | LAZY_IMPORTER_FORCEINLINE unsigned hash( |
| 301 | const win::UNICODE_STRING_T& str, unsigned offset) noexcept |