[#BloombergLP-bdlb-GuidUtil]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::GuidUtil
:relfileprefix: ../../
:mrdocs:

This `struct` provides a namespace for functions that create Universally Unique Identifiers per RFC 4122 (http&colon;&sol;&sol;www&period;ietf&period;org&sol;rfc&sol;rfc4122&period;txt)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct GuidUtil;
----

== Static Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlb/GuidUtil/dnsNamespace.adoc[`dnsNamespace`] 
| Return the pre&hyphen;defined namespace ID for the DNS namespace from Appendix C of RFC 4122, for use with the `generateFromName` method when the name string is a fully&hyphen;qualified domain name&period;
| xref:BloombergLP/bdlb/GuidUtil/generate-07.adoc[`generate`] 
| `generate` overloads
| xref:BloombergLP/bdlb/GuidUtil/generateFromName.adoc[`generateFromName`] 
| Generate and return a single GUID meeting the RFC 4122 version 5 specification from the specified `namespaceId` and `name`&period; `namespaceId` may (but need not) be one of the pre&hyphen;defined namespace IDs&period; Note that this method is a pure function of its arguments&period;
| xref:BloombergLP/bdlb/GuidUtil/generateNonSecure-0e.adoc[`generateNonSecure`] 
| `generateNonSecure` overloads
| xref:BloombergLP/bdlb/GuidUtil/getLeastSignificantBits.adoc[`getLeastSignificantBits`] 
| Return the least significant 8 bytes of the specified `guid`&period;
| xref:BloombergLP/bdlb/GuidUtil/getMostSignificantBits.adoc[`getMostSignificantBits`] 
| Return the most significant 8 bytes of the specified `guid`&period;
| xref:BloombergLP/bdlb/GuidUtil/getVersion.adoc[`getVersion`] 
| Return the version of the specified `guid` object&period; The behavior is undefined unless the contents of the `guid` object are compliant with RFC 4122&period;
| xref:BloombergLP/bdlb/GuidUtil/guidFromString-0d.adoc[`guidFromString`] 
| `guidFromString` overloads
| xref:BloombergLP/bdlb/GuidUtil/guidToString-02.adoc[`guidToString`] 
| `guidToString` overloads
| xref:BloombergLP/bdlb/GuidUtil/oidNamespace.adoc[`oidNamespace`] 
| Return the pre&hyphen;defined namespace ID for the OID namespace from Appendix C of RFC 4122, for use with the `generateFromName` method when the name string is an ISO Object ID (OID)&period;
| xref:BloombergLP/bdlb/GuidUtil/urlNamespace.adoc[`urlNamespace`] 
| Return the pre&hyphen;defined namespace ID for the URL namespace from Appendix C of RFC 4122, for use with the `generateFromName` method when the name string is a URL&period;
| xref:BloombergLP/bdlb/GuidUtil/x500Namespace.adoc[`x500Namespace`] 
| Return the pre&hyphen;defined namespace ID for the X500 namespace from Appendix C of RFC 4122, for use with the `generateFromName` method when the name string is an X&period;500 Distinguished Name&period;
|===



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