[#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 an unsigned integer hash value corresponding to the specified `key`&period; Note that the return value is seemingly random (i&period;e&period;, the hash is good) but identical on all platforms (irrespective of endianness)&period; Both functions `hash1` and `hash2` return a hash, but both hashes can be assumed to be independent (i&period;e&period;, there are no known correlations between the results of both hash functions given the same input data)&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 an unsigned integer hash value corresponding to the specified `data` of the specified `length` (in bytes)&period; The behavior is undefined unless `0 &lt;&equals; length`&period; Note that if `data` is 0, then `length` also must be 0&period; Also note that every byte in `data` is significant&semi; that is, it is not appropriate to cast a `struct` address to a `char &ast;` unless the `struct` is packed (no padding)&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;_]#


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