[#BloombergLP-bdlb-HashUtil-hash1-00c]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/HashUtil.adoc[HashUtil]::hash1
:relfileprefix: ../../../
:mrdocs:

`hash1` 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/hash1-0e.adoc[hash1](xref:BloombergLP/bsls/Types/Int64.adoc[bsls::Types::Int64] key);
----

[.small]#xref:BloombergLP/bdlb/HashUtil/hash1-0e.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/hash1-0de.adoc[hash1](xref:BloombergLP/bsls/Types/Uint64.adoc[bsls::Types::Uint64] key);
----

[.small]#xref:BloombergLP/bdlb/HashUtil/hash1-0de.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/hash1-0b.adoc[hash1](char key);
----

[.small]#xref:BloombergLP/bdlb/HashUtil/hash1-0b.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/hash1-0f1.adoc[hash1](double key);
----

[.small]#xref:BloombergLP/bdlb/HashUtil/hash1-0f1.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/hash1-0f0.adoc[hash1](float key);
----

[.small]#xref:BloombergLP/bdlb/HashUtil/hash1-0f0.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/hash1-064.adoc[hash1](int key);
----

[.small]#xref:BloombergLP/bdlb/HashUtil/hash1-064.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/hash1-03.adoc[hash1](long key);
----

[.small]#xref:BloombergLP/bdlb/HashUtil/hash1-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/hash1-06b.adoc[hash1](short key);
----

[.small]#xref:BloombergLP/bdlb/HashUtil/hash1-06b.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/hash1-0d1.adoc[hash1](signed char key);
----

[.small]#xref:BloombergLP/bdlb/HashUtil/hash1-0d1.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/hash1-006.adoc[hash1](unsigned char key);
----

[.small]#xref:BloombergLP/bdlb/HashUtil/hash1-006.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/hash1-003.adoc[hash1](unsigned int key);
----

[.small]#xref:BloombergLP/bdlb/HashUtil/hash1-003.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/hash1-07.adoc[hash1](unsigned long key);
----

[.small]#xref:BloombergLP/bdlb/HashUtil/hash1-07.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/hash1-09.adoc[hash1](unsigned short key);
----

[.small]#xref:BloombergLP/bdlb/HashUtil/hash1-09.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/hash1-08.adoc[hash1](void const* key);
----

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

Return a 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/hash1-05.adoc[hash1](
    char const* data,
    int length);
----

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

== Return Value

* portable 32&hyphen;bit hash value for `key`
* 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]#
