tin  1.5.9
tsm::transport::payload_buffer< MaxBytes > Struct Template Reference

#include <transport.h>

Collaboration diagram for tsm::transport::payload_buffer< MaxBytes >:
Collaboration graph

Public Member Functions

bool assign (std::byte const *data, std::size_t length)
 
void clear ()
 

Public Attributes

std::array< std::byte, MaxBytes > bytes {}
 
std::size_t size {}
 

Detailed Description

template<std::size_t MaxBytes>
struct tsm::transport::payload_buffer< MaxBytes >

Fixed-capacity payload storage used by dependency-free transport records.

These records are not a serialization format. They are small handoff objects for adapters. A real CAN, DDS, shared-memory, or RPC binding may fill this buffer from its own driver or middleware data structures, then pass the record to an application decoder.

Member Function Documentation

◆ assign()

template<std::size_t MaxBytes>
bool tsm::transport::payload_buffer< MaxBytes >::assign ( std::byte const *  data,
std::size_t  length 
)
inline

◆ clear()

template<std::size_t MaxBytes>
void tsm::transport::payload_buffer< MaxBytes >::clear ( )
inline

Member Data Documentation

◆ bytes

template<std::size_t MaxBytes>
std::array<std::byte, MaxBytes> tsm::transport::payload_buffer< MaxBytes >::bytes {}

◆ size

template<std::size_t MaxBytes>
std::size_t tsm::transport::payload_buffer< MaxBytes >::size {}

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