Hash64WithSeed overloads
Synopses
Declared in <folly/external/farmhash/farmhash.h>
Hashes a string's bytes to a 64‐bit value, mixing in a 64‐bit seed.
template<typename Str>
uint64_t
Hash64WithSeed(
Str const& s,
uint64_t seed);
Hashes a byte array to a 64‐bit value, mixing in a 64‐bit seed.
uint64_t
Hash64WithSeed(
char const* s,
size_t len,
uint64_t seed);
Return Value
-
The 64‐bit hash of the string.
-
The 64‐bit hash of the array.
Template Parameters
Name |
Description |
Str |
String type whose data() and length() give the bytes to hash. |
Parameters
Name |
Description |
s |
String to hash. |
seed |
64‐bit seed mixed into the result. |
len |
Length of the array, in bytes. |
Created with MrDocs