| 24 | } |
| 25 | |
| 26 | uint64_t StringToFingerprint64(const std::string& str) { |
| 27 | std::string tmp = modp::b16_decode(str); |
| 28 | uint64_t value = 0; |
| 29 | memcpy(&value, tmp.data(), sizeof(uint64_t)); // NOLINT(runtime/sizeof) |
| 30 | return value; |
| 31 | } |
| 32 | |
| 33 | } // namespace toft |