VLink 2.0.0
A high-performance communication middleware
载入中...
搜索中...
未找到
header.h 文件参考

Common timestamp and sequencing metadata header for VLink zero-copy data types. 更多...

#include <cstdint>
#include "../base/macros.h"
header.h 的引用(Include)关系图:
此图展示该文件被哪些文件直接或间接地引用了:

浏览该文件的源代码.

命名空间

函数

struct vlink::zerocopy::VLINK_EXPORT_AND_ALIGNED (8) CameraFrame final

详细描述

Common timestamp and sequencing metadata header for VLink zero-copy data types.

Header is a fixed-size (40-byte) POD structure that is embedded as the first public member in all VLink zero-copy containers (RawData, CameraFrame, PointCloud). It carries per-message timing and identification fields that survive binary serialisation intact because the entire container struct is memcpy'd into the wire buffer.

The layout is verified at compile time:

static_assert(sizeof(Header) == 40, "Sizeof must be 40 bytes.");
Fixed-size (40-byte) metadata header embedded in all VLink zero-copy data types.
Memory layout
Offset Size Field
------ ---- ----------
0 16 frame_id
16 4 seq
20 4 reserved
24 8 time_meas
32 8 time_pub
注解
  • All fields are plain data; no virtual functions, no dynamic allocation.
  • The struct is 8-byte aligned (VLINK_EXPORT_AND_ALIGNED(8)) to ensure consistent padding across compilers and architectures.
  • 32-bit architectures (arm, x86, i386) emit a compile-time warning and are not officially supported for zero-copy types.