cpp-msgpack-rpc 0.2.0
An RPC library implementing MessagePack RPC.
|
Namespace of internal implementations. More...
Classes | |
class | SerializationBuffer |
Class of buffers for serialization. More... | |
struct | SharableBinaryHeader |
Struct of headers of sharable binary data. More... |
Functions | |
void | add_reference_count_of_sharable_binary (SharableBinaryHeader *buffer) noexcept |
Add a reference count of a buffer of sharable binary data. | |
SharableBinaryHeader * | allocate_sharable_binary (std::size_t binary_size) |
Allocate a buffer of sharable binary data. | |
SharableBinaryHeader * | allocate_shared_binary () |
Allocate a buffer of sharable binary data with automatic initial size. | |
char * | binary_buffer_of (SharableBinaryHeader *buffer) noexcept |
Get buffer of binary data from a buffer of sharable binary data. | |
void | deallocate_sharable_binary (SharableBinaryHeader *buffer) noexcept |
Deallocate a buffer of sharable binary data. | |
void | decrease_reference_count_of_sharable_binary (SharableBinaryHeader *buffer) noexcept |
Decrease a reference count of a buffer of sharable binary data, and deallocate the buffer if possible. | |
void | enable_reference_count_of_sharable_binary (SharableBinaryHeader *buffer) noexcept |
Enable reference count of a buffer of sharable binary data. | |
SharableBinaryHeader * | expand_sharable_binary (SharableBinaryHeader *buffer, std::size_t required_size) |
Expand a buffer of sharable binary data. | |
ParsedMessage | parse_message_from_object (msgpack::object_handle object) |
Parse a message from an object in msgpack library. | |
MessageID | parse_message_id_from_object (const msgpack::object &object) |
Parse a message ID from an object in msgpack library. | |
MessageType | parse_message_type_from_object (const msgpack::object &object) |
Parse a message type from an object in msgpack library. | |
MethodNameView | parse_method_name_from_object (const msgpack::object &object) |
Parse a method name from an object in msgpack library. | |
ParsedNotification | parse_notification_from_object (msgpack::object_handle object) |
Parse a notification from an object in msgpack library. | |
ParsedRequest | parse_request_from_object (msgpack::object_handle object) |
Parse a request from an object in msgpack library. | |
ParsedResponse | parse_response_from_object (msgpack::object_handle object) |
Parse a response from an object in msgpack library. | |
std::atomic< int > & | reference_count_of (SharableBinaryHeader *buffer) noexcept |
Access the reference count of a buffer of sharable binary data. |
Variables | |
constexpr std::size_t | SHARABLE_BINARY_ALIGNMENT = alignof(SharableBinaryHeader) |
Alignment of sharable binary data. |
Namespace of internal implementations.
|
inlinenoexcept |
Add a reference count of a buffer of sharable binary data.
[in,out] | buffer | Buffer. |
Definition at line 201 of file sharable_binary_header.h.
|
inlinenodiscard |
Allocate a buffer of sharable binary data.
[in] | binary_size | Size of the binary data. |
Definition at line 67 of file sharable_binary_header.h.
|
inlinenodiscard |
Allocate a buffer of sharable binary data with automatic initial size.
Definition at line 93 of file sharable_binary_header.h.
|
inlinenoexcept |
Get buffer of binary data from a buffer of sharable binary data.
[in] | buffer | Buffer. |
Definition at line 227 of file sharable_binary_header.h.
|
inlinenoexcept |
Deallocate a buffer of sharable binary data.
[in,out] | buffer | Buffer. |
Definition at line 172 of file sharable_binary_header.h.
|
inlinenoexcept |
Decrease a reference count of a buffer of sharable binary data, and deallocate the buffer if possible.
[in,out] | buffer | Buffer. |
Definition at line 212 of file sharable_binary_header.h.
|
inlinenoexcept |
Enable reference count of a buffer of sharable binary data.
[in,out] | buffer | Buffer. |
Definition at line 188 of file sharable_binary_header.h.
|
inlinenodiscard |
Expand a buffer of sharable binary data.
[in,out] | buffer | Buffer. |
[in] | required_size | Required size of binary data. |
Definition at line 122 of file sharable_binary_header.h.
|
inlinenodiscard |
Parse a message from an object in msgpack library.
[in] | object | Object in msgpack library. |
Definition at line 178 of file parse_message_from_object.h.
|
inlinenodiscard |
Parse a message ID from an object in msgpack library.
[in] | object | Object in msgpack library. |
Definition at line 77 of file parse_message_from_object.h.
|
inlinenodiscard |
Parse a message type from an object in msgpack library.
[in] | object | Object in msgpack library. |
Definition at line 50 of file parse_message_from_object.h.
|
inlinenodiscard |
Parse a method name from an object in msgpack library.
[in] | object | Object in msgpack library. |
Definition at line 93 of file parse_message_from_object.h.
|
inlinenodiscard |
Parse a notification from an object in msgpack library.
[in] | object | Object in msgpack library. |
Definition at line 158 of file parse_message_from_object.h.
|
inlinenodiscard |
Parse a request from an object in msgpack library.
[in] | object | Object in msgpack library. |
Definition at line 109 of file parse_message_from_object.h.
|
inlinenodiscard |
Parse a response from an object in msgpack library.
[in] | object | Object in msgpack library. |
Definition at line 131 of file parse_message_from_object.h.
|
inlinenodiscardnoexcept |
Access the reference count of a buffer of sharable binary data.
[in] | buffer | Buffer. |
Definition at line 160 of file sharable_binary_header.h.
|
constexpr |
Alignment of sharable binary data.
Definition at line 56 of file sharable_binary_header.h.