[#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 `<bdlb_hashutil.h>` Same as the preceding overload for the specified `key` type. [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..._]# Same as the preceding overload for the specified `key` type. [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..._]# Return an unsigned integer hash value corresponding to the specified `key`. Note that the return value is seemingly random (i.e., the hash is good) but identical on all platforms (irrespective of endianness). Both functions `hash1` and `hash2` return a hash, but both hashes can be assumed to be independent (i.e., there are no known correlations between the results of both hash functions given the same input data). [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..._]# Same as the preceding overload for the specified `key` type. [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..._]# Same as the preceding overload for the specified `key` type. [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..._]# Same as the preceding overload for the specified `key` type. [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..._]# Same as the preceding overload for the specified `key` type. [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..._]# Same as the preceding overload for the specified `key` type. [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..._]# Same as the preceding overload for the specified `key` type. [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..._]# Same as the preceding overload for the specified `key` type. [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..._]# Same as the preceding overload for the specified `key` type. [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..._]# Same as the preceding overload for the specified `key` type. [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..._]# Same as the preceding overload for the specified `key` type. [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..._]# Same as the preceding overload for the specified pointer `key`. [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..._]# Return an unsigned integer hash value corresponding to the specified `data` of the specified `length` (in bytes). The behavior is undefined unless `0 <= length`. Note that if `data` is 0, then `length` also must be 0. Also note that every byte in `data` is significant; that is, it is not appropriate to cast a `struct` address to a `char *` unless the `struct` is packed (no padding). [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..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#