LibQuicR
quicr::FullTrackName Struct Reference

Full track name struct. More...

#include <track_name.h>

Public Member Functions

auto NameStr () const noexcept
 View the track-name bytes as text without copying. More...
 
auto NamespaceStr () const noexcept
 Render the namespace as slash-separated text. More...
 

Public Attributes

TrackNamespace name_space
 Namespace tuple containing the track. More...
 
std::vector< uint8_t > name
 Track name as opaque bytes. More...
 

Detailed Description

Full track name struct.

Struct of the full track name, which includes the namespace tuple, name, and track alias

Examples
simple_publish/main.cpp, and simple_subscribe/main.cpp.

Member Function Documentation

◆ NamespaceStr()

auto quicr::FullTrackName::NamespaceStr ( ) const
inlinenoexcept

Render the namespace as slash-separated text.

Returns
Newly allocated diagnostic string.

◆ NameStr()

auto quicr::FullTrackName::NameStr ( ) const
inlinenoexcept

View the track-name bytes as text without copying.

Returns
View valid until name is modified or this object is destroyed.

Member Data Documentation

◆ name

std::vector<uint8_t> quicr::FullTrackName::name

Track name as opaque bytes.

◆ name_space

TrackNamespace quicr::FullTrackName::name_space

Namespace tuple containing the track.


The documentation for this struct was generated from the following file: