MCPcopy Create free account
hub / github.com/chen3feng/toft / StringToFingerprint64

Function StringToFingerprint64

hash/fingerprint64.cpp:26–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26uint64_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

Callers 1

TESTFunction · 0.85

Calls 1

dataMethod · 0.80

Tested by 1

TESTFunction · 0.68