|
cpp-msgpack-rpc 0.2.0
An RPC library implementing MessagePack RPC.
|
Class of serialized message data. More...
#include <msgpack_rpc/messages/serialized_message.h>
Public Member Functions | |
| SerializedMessage (const char *data, std::size_t size) | |
| Constructor. | |
| SerializedMessage (const SerializedMessage &other) noexcept | |
| Copy constructor. | |
| SerializedMessage (impl::SharableBinaryHeader *buffer) | |
| Constructor. | |
| SerializedMessage (SerializedMessage &&other) noexcept | |
| Move constructor. | |
| ~SerializedMessage () noexcept | |
| Destructor. | |
| const char * | data () const noexcept |
| Get the pointer to the data. | |
| SerializedMessage & | operator= (const SerializedMessage &other) noexcept |
| Copy assignment operator. | |
| SerializedMessage & | operator= (SerializedMessage &&other) noexcept |
| Move assignment operator. | |
| std::size_t | size () const noexcept |
| Get the size of the data. | |
Private Attributes | |
| impl::SharableBinaryHeader * | buffer_ |
| Buffer. | |
Class of serialized message data.
Definition at line 34 of file serialized_message.h.
| msgpack_rpc::messages::SerializedMessage::SerializedMessage | ( | const char * | data, |
| std::size_t | size ) |
Constructor.
| [in] | data | Pointer to the data. |
| [in] | size | Size of the data. |
Definition at line 30 of file serialized_message.cpp.
|
explicit |
Constructor.
| [in] | buffer | Buffer. |
Definition at line 37 of file serialized_message.cpp.
|
noexcept |
Copy constructor.
| [in] | other | Object to copy from. |
Definition at line 40 of file serialized_message.cpp.
|
noexcept |
Move constructor.
| [in,out] | other | Object to move from. |
Definition at line 45 of file serialized_message.cpp.
|
noexcept |
Destructor.
Definition at line 67 of file serialized_message.cpp.
|
nodiscardnoexcept |
Get the pointer to the data.
Definition at line 73 of file serialized_message.cpp.
|
noexcept |
Copy assignment operator.
| [in] | other | Object to copy from. |
Definition at line 48 of file serialized_message.cpp.
|
noexcept |
Move assignment operator.
| [in,out] | other | Object to move from. |
Definition at line 61 of file serialized_message.cpp.
|
nodiscardnoexcept |
Get the size of the data.
Definition at line 77 of file serialized_message.cpp.
|
private |
Buffer.
Definition at line 104 of file serialized_message.h.