8#ifndef INCLUDED_BDLB_GUIDUTIL
9#define INCLUDED_BDLB_GUIDUTIL
224#include <bdlscm_version.h>
235#include <bsl_array.h>
236#include <bsl_cstddef.h>
237#include <bsl_cstdint.h>
238#include <bsl_string.h>
297 static void generate(
Guid *result, bsl::size_t numGuids = 1);
366#ifdef BSLS_LIBRARYFEATURES_HAS_CPP17_PMR_STRING
398 static void generate(
unsigned char *result, bsl::size_t numGuids = 1);
416 (*out)[i] = d_generators[i].generate();
427 generate(
reinterpret_cast<unsigned char *
>(result), numGuids);
433 return (guid[6] & 0xF0) >> 4;
Definition bdlb_guidutil.h:253
@ k_GENERATOR_COUNT
Definition bdlb_guidutil.h:258
void seed(const bsl::array< bsl::uint64_t, k_GENERATOR_COUNT > &state)
Seed the internal generators based on the specified state values.
void generateRandomBits(bsl::uint32_t(*out)[GuidState_Imp::k_GENERATOR_COUNT])
Definition bdlb_guidutil.h:412
Definition bdlb_guid.h:201
Definition bslstl_stringview.h:441
Definition bslstl_string.h:1281
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
Definition bdlb_algorithmworkaroundutil.h:74
Definition bdlb_guidutil.h:284
static Guid generateFromName(const Guid &namespaceId, const bsl::string_view &name)
static Guid dnsNamespace()
static Guid generateNonSecure()
static Guid urlNamespace()
static void generateNonSecure(Guid *result, bsl::size_t numGuids=1)
static void guidToString(bsl::string *result, const Guid &guid)
static Guid guidFromString(const bsl::string_view &guidString)
static bsls::Types::Uint64 getLeastSignificantBits(const Guid &guid)
Return the least significant 8 bytes of the specified guid.
static Guid x500Namespace()
static void guidToString(std::string *result, const Guid &guid)
static bsls::Types::Uint64 getMostSignificantBits(const Guid &guid)
Return the most significant 8 bytes of the specified guid.
static int getVersion(const bdlb::Guid &guid)
Definition bdlb_guidutil.h:431
static void generate(unsigned char *result, bsl::size_t numGuids=1)
static Guid oidNamespace()
static bsl::string guidToString(const Guid &guid)
static int guidFromString(Guid *result, const bsl::string_view &guidString)
Definition bslstl_array.h:290
unsigned long long Uint64
Definition bsls_types.h:137