CARLA
Public Member Functions | Private Attributes | List of all members
carla::multigpu::IncomingMessage Class Reference

Helper for reading incoming TCP messages. More...

#include <incomingMessage.h>

+ Collaboration diagram for carla::multigpu::IncomingMessage:

Public Member Functions

boost::asio::mutable_buffer buffer ()
 
 IncomingMessage (Buffer &&buffer)
 
auto pop ()
 
auto size () const
 
boost::asio::mutable_buffer size_as_buffer ()
 

Private Attributes

Buffer _buffer
 
carla::streaming::detail::message_size_type _size = 0u
 

Detailed Description

Helper for reading incoming TCP messages.

Allocates the whole message in a single buffer.

Definition at line 21 of file incomingMessage.h.

Constructor & Destructor Documentation

◆ IncomingMessage()

carla::multigpu::IncomingMessage::IncomingMessage ( Buffer &&  buffer)
inlineexplicit

Definition at line 24 of file incomingMessage.h.

Member Function Documentation

◆ buffer()

boost::asio::mutable_buffer carla::multigpu::IncomingMessage::buffer ( )
inline

Definition at line 30 of file incomingMessage.h.

References _buffer, _size, carla::Buffer::buffer(), DEBUG_ASSERT, and carla::Buffer::reset().

+ Here is the call graph for this function:

◆ pop()

auto carla::multigpu::IncomingMessage::pop ( )
inline

Definition at line 40 of file incomingMessage.h.

References _buffer.

◆ size()

auto carla::multigpu::IncomingMessage::size ( ) const
inline

Definition at line 36 of file incomingMessage.h.

References _size.

◆ size_as_buffer()

boost::asio::mutable_buffer carla::multigpu::IncomingMessage::size_as_buffer ( )
inline

Definition at line 26 of file incomingMessage.h.

References _size.

Member Data Documentation

◆ _buffer

Buffer carla::multigpu::IncomingMessage::_buffer
private

Definition at line 48 of file incomingMessage.h.

Referenced by buffer(), and pop().

◆ _size

carla::streaming::detail::message_size_type carla::multigpu::IncomingMessage::_size = 0u
private

Definition at line 46 of file incomingMessage.h.

Referenced by buffer(), size(), and size_as_buffer().


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