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] |
|
inline |
Converts a hexadecimal to binary format if the hex string will fit the buffer.
Smaller hex strings are left padded with zeroes.
Definition at line 51 of file includes/opentelemetry/trace/propagation/detail/hex.h.
References HexToInt(), and nostd::string_view::size().
Referenced by trace::propagation::B3PropagatorExtractor::SpanIdFromHex(), trace::propagation::HttpTraceContext::SpanIdFromHex(), trace::propagation::HttpTraceContext::TraceFlagsFromHex(), trace::propagation::B3PropagatorExtractor::TraceIdFromHex(), and trace::propagation::HttpTraceContext::TraceIdFromHex().
|
inline |
Definition at line 37 of file includes/opentelemetry/trace/propagation/detail/hex.h.
References kHexDigits.
Referenced by HexToBinary().
|
inline |
Definition at line 42 of file includes/opentelemetry/trace/propagation/detail/hex.h.
References nostd::string_view::begin(), and nostd::string_view::end().
|
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().
|
constexpr |
Definition at line 23 of file includes/opentelemetry/trace/propagation/detail/hex.h.
Referenced by HexToInt().