Hash64WithSeeds overloads
Synopses
Declared in <folly/external/farmhash/farmhash.h>
Hashes a string's bytes to a 64‐bit value, mixing in two 64‐bit seeds.
template<typename Str>
uint64_t
Hash64WithSeeds(
Str const& s,
uint64_t seed0,
uint64_t seed1);
Hashes a byte array to a 64‐bit value, mixing in two 64‐bit seeds.
uint64_t
Hash64WithSeeds(
char const* s,
size_t len,
uint64_t seed0,
uint64_t seed1);
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. |
seed0 |
First 64‐bit seed mixed into the result. |
seed1 |
Second 64‐bit seed mixed into the result. |
len |
Length of the array, in bytes. |
Created with MrDocs