85 #include <string_view>
87 #include "../base/macros.h"
88 #include "../version.h"
115 inline constexpr uint32_t
version_major(uint32_t version) noexcept {
return version / 1000000U; }
128 char frame_id[16]{
"unknown"};
130 uint32_t reserved{0};
131 uint64_t time_meas{0};
132 uint64_t time_pub{0};
153 [[nodiscard]] std::string_view frame_id_view()
const noexcept {
154 return {frame_id, ::strnlen(frame_id,
sizeof(frame_id))};
constexpr uint32_t version_major(uint32_t version) noexcept
Extracts the major component from an encoded zero-copy wire version.
Definition: header.h:115
struct VLINK_EXPORT_AND_ALIGNED(8) AudioFrame final
Definition: audio_frame.h:140
constexpr uint32_t kWireVersion
Encoded VLink library version stamped into every zero-copy wire envelope.
Definition: header.h:105
#define VLINK_VERSION_PATCH
Definition: version.h:94
#define VLINK_VERSION_MAJOR
Definition: version.h:92
#define VLINK_VERSION_MINOR
Definition: version.h:93