NVIDIA DeepStream SDK API Reference

9.2 Release
trace::propagation::detail Namespace Reference

Functions

int8_t HexToInt (char c)
 
bool IsValidHex (nostd::string_view s)
 
bool HexToBinary (nostd::string_view hex, uint8_t *buffer, size_t buffer_size)
 Converts a hexadecimal to binary format if the hex string will fit the buffer. More...
 
size_t SplitString (nostd::string_view s, char separator, nostd::string_view *results, size_t count)
 Splits a string by separator, up to given buffer count words. More...
 

Variables

constexpr int8_t kHexDigits [256]
 

Function Documentation

◆ HexToBinary()

bool trace::propagation::detail::HexToBinary ( nostd::string_view  hex,
uint8_t *  buffer,
size_t  buffer_size 
)
inline

◆ HexToInt()

int8_t trace::propagation::detail::HexToInt ( char  c)
inline

Definition at line 37 of file includes/opentelemetry/trace/propagation/detail/hex.h.

References kHexDigits.

Referenced by HexToBinary().

◆ IsValidHex()

bool trace::propagation::detail::IsValidHex ( nostd::string_view  s)
inline

◆ SplitString()

size_t trace::propagation::detail::SplitString ( nostd::string_view  s,
char  separator,
nostd::string_view *  results,
size_t  count 
)
inline

Splits a string by separator, up to given buffer count words.

Returns the amount of words the input was split into.

Definition at line 23 of file includes/opentelemetry/trace/propagation/detail/string.h.

References nostd::string_view::size(), and nostd::string_view::substr().

Variable Documentation

◆ kHexDigits

constexpr int8_t trace::propagation::detail::kHexDigits
constexpr
Initial value:
= {
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, -1, -1, -1, -1, -1, -1, -1, 10, 11, 12, 13, 14, 15, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, 10, 11, 12, 13, 14, 15, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
}

Definition at line 23 of file includes/opentelemetry/trace/propagation/detail/hex.h.

Referenced by HexToInt().