[#BloombergLP-bslh-SpookyHashAlgorithmImp] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslh.adoc[bslh]::SpookyHashAlgorithmImp :relfileprefix: ../../ :mrdocs: This class wraps Bob Jenkins' SpookyHash in a BDE‐style component. == Synopsis Declared in `<bslh_spookyhashalgorithmimp.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- 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 [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslh/SpookyHashAlgorithmImp/Uint16.adoc[`Uint16`] | 16‐bit unsigned integer type used by the implementation. | xref:BloombergLP/bslh/SpookyHashAlgorithmImp/Uint32.adoc[`Uint32`] | 32‐bit unsigned integer type used by the implementation. | xref:BloombergLP/bslh/SpookyHashAlgorithmImp/Uint64.adoc[`Uint64`] | 64‐bit unsigned integer type used by the implementation. | xref:BloombergLP/bslh/SpookyHashAlgorithmImp/Uint8.adoc[`Uint8`] | 8‐bit unsigned integer type used by the implementation. |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslh/SpookyHashAlgorithmImp/2constructor.adoc[`SpookyHashAlgorithmImp`] [.small]#[constructor]# | Create a `bslh::SpookyHashAlgorithmImp`, initializing the internal state of the object using the specified `seed1` and `seed2` as seeds for the algorithm. | xref:BloombergLP/bslh/SpookyHashAlgorithmImp/finalize.adoc[`finalize`] | Load the finalized 128‐bit hash into `hash1` and `hash2`. | xref:BloombergLP/bslh/SpookyHashAlgorithmImp/update.adoc[`update`] | Accumulate `length` bytes of `message` into the algorithm state. |=== == Static Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslh/SpookyHashAlgorithmImp/hash128.adoc[`hash128`] | Compute a 128‐bit SpookyHash of `message` into `hash1` and `hash2`. | xref:BloombergLP/bslh/SpookyHashAlgorithmImp/hash32.adoc[`hash32`] | Return a 32‐bit SpookyHash of `message`. | xref:BloombergLP/bslh/SpookyHashAlgorithmImp/hash64.adoc[`hash64`] | Return a 64‐bit SpookyHash of `message`. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#