[#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://www.ietf.org/rfc/rfc4122.txt). == Synopsis Declared in `<bdlb_guidutil.h>` [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‐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‐qualified domain name. | 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`. `namespaceId` may (but need not) be one of the pre‐defined namespace IDs. Note that this method is a pure function of its arguments. | 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`. | xref:BloombergLP/bdlb/GuidUtil/getMostSignificantBits.adoc[`getMostSignificantBits`] | Return the most significant 8 bytes of the specified `guid`. | xref:BloombergLP/bdlb/GuidUtil/getVersion.adoc[`getVersion`] | Return the version of the specified `guid` object. The behavior is undefined unless the contents of the `guid` object are compliant with RFC 4122. | 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‐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). | xref:BloombergLP/bdlb/GuidUtil/urlNamespace.adoc[`urlNamespace`] | Return the pre‐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. | xref:BloombergLP/bdlb/GuidUtil/x500Namespace.adoc[`x500Namespace`] | Return the pre‐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.500 Distinguished Name. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#