[#BloombergLP-bdlb-HashUtil-hash2-0bf]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/HashUtil.adoc[HashUtil]::hash2
:relfileprefix: ../../../
:mrdocs:

`hash2` overloads

== Synopses

Declared in `&lt;bdlb&lowbar;hashutil&period;h&gt;`

Same as the preceding overload for the specified `key` type&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
unsigned int
xref:BloombergLP/bdlb/HashUtil/hash2-03.adoc[hash2](xref:BloombergLP/bsls/Types/Int64.adoc[bsls::Types::Int64] key);
----

[.small]#xref:BloombergLP/bdlb/HashUtil/hash2-03.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload for the specified `key` type&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
unsigned int
xref:BloombergLP/bdlb/HashUtil/hash2-00.adoc[hash2](xref:BloombergLP/bsls/Types/Uint64.adoc[bsls::Types::Uint64] key);
----

[.small]#xref:BloombergLP/bdlb/HashUtil/hash2-00.adoc[_» more&period;&period;&period;_]#

Return a portable 32&hyphen;bit hash value for the specified `key`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
unsigned int
xref:BloombergLP/bdlb/HashUtil/hash2-024.adoc[hash2](char key);
----

[.small]#xref:BloombergLP/bdlb/HashUtil/hash2-024.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload for the specified `key` type&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
unsigned int
xref:BloombergLP/bdlb/HashUtil/hash2-05e.adoc[hash2](double key);
----

[.small]#xref:BloombergLP/bdlb/HashUtil/hash2-05e.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload for the specified `key` type&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
unsigned int
xref:BloombergLP/bdlb/HashUtil/hash2-08.adoc[hash2](float key);
----

[.small]#xref:BloombergLP/bdlb/HashUtil/hash2-08.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload for the specified `key` type&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
unsigned int
xref:BloombergLP/bdlb/HashUtil/hash2-0b6.adoc[hash2](int key);
----

[.small]#xref:BloombergLP/bdlb/HashUtil/hash2-0b6.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload for the specified `key` type&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
unsigned int
xref:BloombergLP/bdlb/HashUtil/hash2-098.adoc[hash2](long key);
----

[.small]#xref:BloombergLP/bdlb/HashUtil/hash2-098.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload for the specified `key` type&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
unsigned int
xref:BloombergLP/bdlb/HashUtil/hash2-05c.adoc[hash2](short key);
----

[.small]#xref:BloombergLP/bdlb/HashUtil/hash2-05c.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload for the specified `key` type&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
unsigned int
xref:BloombergLP/bdlb/HashUtil/hash2-0f.adoc[hash2](signed char key);
----

[.small]#xref:BloombergLP/bdlb/HashUtil/hash2-0f.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload for the specified `key` type&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
unsigned int
xref:BloombergLP/bdlb/HashUtil/hash2-0d.adoc[hash2](unsigned char key);
----

[.small]#xref:BloombergLP/bdlb/HashUtil/hash2-0d.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload for the specified `key` type&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
unsigned int
xref:BloombergLP/bdlb/HashUtil/hash2-07e.adoc[hash2](unsigned int key);
----

[.small]#xref:BloombergLP/bdlb/HashUtil/hash2-07e.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload for the specified `key` type&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
unsigned int
xref:BloombergLP/bdlb/HashUtil/hash2-07d.adoc[hash2](unsigned long key);
----

[.small]#xref:BloombergLP/bdlb/HashUtil/hash2-07d.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload for the specified `key` type&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
unsigned int
xref:BloombergLP/bdlb/HashUtil/hash2-022.adoc[hash2](unsigned short key);
----

[.small]#xref:BloombergLP/bdlb/HashUtil/hash2-022.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload for the specified pointer `key`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
unsigned int
xref:BloombergLP/bdlb/HashUtil/hash2-06.adoc[hash2](void const* key);
----

[.small]#xref:BloombergLP/bdlb/HashUtil/hash2-06.adoc[_» more&period;&period;&period;_]#

Return an independent 32&hyphen;bit hash value for the specified `data` of the specified `length`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
unsigned int
xref:BloombergLP/bdlb/HashUtil/hash2-09e.adoc[hash2](
    char const* data,
    int length);
----

[.small]#xref:BloombergLP/bdlb/HashUtil/hash2-09e.adoc[_» more&period;&period;&period;_]#

== Return Value

* portable 32&hyphen;bit hash value for `key`
* independent 32&hyphen;bit hash value for `data`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *key*
| value to hash
| *data*
| bytes to hash
| *length*
| number of bytes in `data`
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
