folly::external::farmhash::Hash64

Hash64 overloads

Synopses

Declared in <folly/external/farmhash/farmhash.h>

Hashes a string's bytes to a 64-bit value.

template<typename Str>
uint64_t
Hash64(Str const& s);
» more...

Hashes a byte array to a 64-bit value.

uint64_t
Hash64(
    char const* s,
    size_t len);
» more...

Return Value

  • The 64-bit hash of the string.
  • The 64-bit hash of the array.

Template Parameters

NameDescription
StrString type whose data() and length() give the bytes to hash.

Parameters

NameDescription
sString to hash.
lenLength of the array, in bytes.