Helper for reading incoming TCP messages. More...
#include <incomingMessage.h>
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 |
Helper for reading incoming TCP messages.
Allocates the whole message in a single buffer.
Definition at line 21 of file incomingMessage.h.
|
inlineexplicit |
Definition at line 24 of file incomingMessage.h.
|
inline |
Definition at line 30 of file incomingMessage.h.
References _buffer, _size, carla::Buffer::buffer(), DEBUG_ASSERT, and carla::Buffer::reset().
|
inline |
Definition at line 40 of file incomingMessage.h.
References _buffer.
|
inline |
Definition at line 36 of file incomingMessage.h.
References _size.
|
inline |
Definition at line 26 of file incomingMessage.h.
References _size.
|
private |
Definition at line 48 of file incomingMessage.h.
|
private |
Definition at line 46 of file incomingMessage.h.
Referenced by buffer(), size(), and size_as_buffer().