|
|
NVIDIA DeepStream SDK API Reference
|
9.2 Release
|
Go to the documentation of this file.
9 #include "opentelemetry/nostd/span.h"
10 #include "opentelemetry/version.h"
23 static constexpr
int kSize = 16;
37 constexpr
char kHex[] =
"0123456789abcdef";
38 for (
int i = 0; i <
kSize; ++i)
40 buffer[i * 2 + 0] = kHex[(rep_[i] >> 4) & 0xF];
41 buffer[i * 2 + 1] = kHex[(rep_[i] >> 0) & 0xF];
53 return memcmp(rep_, that.rep_,
kSize) == 0;
64 memcpy(dest.data(), rep_,
kSize);
nostd::span< const uint8_t, kSize > Id() const noexcept
void CopyBytesTo(nostd::span< uint8_t, kSize > dest) const noexcept
bool IsValid() const noexcept
void ToLowerBase16(nostd::span< char, 2 *kSize > buffer) const noexcept
static constexpr int kSize
#define OPENTELEMETRY_BEGIN_NAMESPACE
TraceId(nostd::span< const uint8_t, kSize > id) noexcept
#define OPENTELEMETRY_END_NAMESPACE
bool operator==(const TraceId &that) const noexcept
bool operator!=(const TraceId &that) const noexcept