This class wraps Bob Jenkins' SpookyHash in a BDE‐style component.

Synopsis

Declared in <bslh_spookyhashalgorithmimp.h>

class SpookyHashAlgorithmImp;

Description

This class wraps an implementation of Bob Jenkin's "SpookyHash" in a BDE‐style component. For more information, see http://burtleburtle.net/bob/hash/spooky.html .

Type Aliases

Name

Description

Uint16

16‐bit unsigned integer type used by the implementation.

Uint32

32‐bit unsigned integer type used by the implementation.

Uint64

64‐bit unsigned integer type used by the implementation.

Uint8

8‐bit unsigned integer type used by the implementation.

Member Functions

Name

Description

SpookyHashAlgorithmImp [constructor]

Create a bslh::SpookyHashAlgorithmImp, initializing the internal state of the object using the specified seed1 and seed2 as seeds for the algorithm.

finalize

Load the finalized 128‐bit hash into hash1 and hash2.

update

Accumulate length bytes of message into the algorithm state.

Static Member Functions

Name

Description

hash128

Compute a 128‐bit SpookyHash of message into hash1 and hash2.

hash32

Return a 32‐bit SpookyHash of message.

hash64

Return a 64‐bit SpookyHash of message.

Created with MrDocs