54 return Stream.MakeBuffer();
58 template <
typename SensorT,
typename... ArgsT>
59 void Send(SensorT &Sensor, ArgsT &&... Args);
67 if (HeaderStr->
frame != FrameNumber)
70 HeaderStr->
frame = FrameNumber;
80 template <
typename SensorT>
82 const SensorT &InSensor,
103 template <
typename T>
104 template <
typename SensorT,
typename... ArgsT>
const value_type * data() const noexcept
Direct access to the allocated memory or nullptr if no memory is allocated.
FAsyncDataStreamTmpl(FAsyncDataStreamTmpl &&)=default
A streaming channel for sending sensor data to clients.
carla::Buffer PopBufferFromPool()
Pop a Buffer from the pool.
static Buffer Serialize(Sensor &sensor, Args &&... args)
Serialize the arguments provided into a Buffer by calling to the serializer registered for the given ...
static void log_info(Args &&... args)
A streaming channel for sending sensor data to clients, supports sending data asynchronously.
auto GetToken() const
Return the token that allows subscribing to this stream.
void Send(SensorT &Sensor, ArgsT &&... Args)
Send some data down the stream.
void SetFrameNumber(uint64_t FrameNumber)
allow to change the frame number of the header