|
VLink 2.0.0
A high-performance communication middleware
|
Zero-copy proxy message envelope carrying raw payload plus routing metadata. 更多...
命名空间 | |
| namespace | vlink |
| namespace | vlink::zerocopy |
函数 | |
| struct | vlink::zerocopy::VLINK_EXPORT_AND_ALIGNED (8) CameraFrame final |
Zero-copy proxy message envelope carrying raw payload plus routing metadata.
ProxyData is used by the VLink proxy layer to bundle a serialised message with its routing context (URL, serialisation type, source hostname) and control fields (control ID, mode, timestamp, sequence number) into a single flat allocation.
The struct is exactly 80 bytes on 64-bit platforms. Internally a single owned buffer is laid out as:
Position and length of each region are stored as uint32_t fields in the struct itself so that after binary round-trip the sub-buffers can be accessed as std::string_view without additional allocation.
operator<<, all sub-buffer string_views reference memory inside the source Bytes. The Bytes must outlive the ProxyData.is_valid() performs an additional internal consistency check that all position + size values are contiguous and sum correctly.