8#ifndef INCLUDED_BSLH_SPOOKYHASHALGORITHM
9#define INCLUDED_BSLH_SPOOKYHASHALGORITHM
336#include <bslscm_version.h>
401 Uint64 getSeed(
const char *seed);
431 void operator()(
const void *data,
size_t numBytes);
448SpookyHashAlgorithm::Uint64 SpookyHashAlgorithm::getSeed(
const char *seed)
451 ::memcpy(&ret, seed,
sizeof(ret));
463: d_state(getSeed(seed), getSeed(seed + sizeof(Uint64)))
472 d_state.
update(data, numBytes);
Definition bslh_spookyhashalgorithmimp.h:291
void update(const void *message, size_t length)
void finalize(Uint64 *hash1, Uint64 *hash2)
Definition bslh_spookyhashalgorithm.h:362
~SpookyHashAlgorithm()=default
void operator()(const void *data, size_t numBytes)
Definition bslh_spookyhashalgorithm.h:468
@ k_SEED_LENGTH
Definition bslh_spookyhashalgorithm.h:392
SpookyHashAlgorithm()
Create a SpookyHashAlgorithm using a default initial seed.
Definition bslh_spookyhashalgorithm.h:457
result_type computeHash()
Definition bslh_spookyhashalgorithm.h:476
bsls::Types::Uint64 result_type
Typedef indicating the value type returned by this algorithm.
Definition bslh_spookyhashalgorithm.h:388
#define BSLS_ASSERT(X)
Definition bsls_assert.h:1804
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
Definition bslh_defaulthashalgorithm.h:339
Definition bdlbb_blob.h:576
Definition bslmf_isbitwisemoveable.h:718
unsigned long long Uint64
Definition bsls_types.h:137