folly::external::farmhash::Fingerprint32

Fingerprint32 overloads

Synopses

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

Fingerprints a string's bytes to a 32-bit value.

template<typename Str>
uint32_t
Fingerprint32(Str const& s);
» more...

Fingerprints a byte array to a 32-bit value.

uint32_t
Fingerprint32(
    char const* s,
    size_t len);
» more...

Return Value

  • The 32-bit fingerprint of the string.
  • The 32-bit fingerprint of the array.

Template Parameters

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

Parameters

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