cpp-msgpack-rpc 0.2.0
An RPC library implementing MessagePack RPC.
Loading...
Searching...
No Matches
msgpack_rpc::config::MessageParserConfig Class Reference

Class of configuration of parsers of messages. More...

#include <msgpack_rpc/config/message_parser_config.h>

Collaboration diagram for msgpack_rpc::config::MessageParserConfig:

Public Member Functions

 MessageParserConfig ()
 Constructor.
std::size_t read_buffer_size () const noexcept
 Get the buffer size to read at once.
MessageParserConfigread_buffer_size (std::size_t value)
 Set the buffer size to read at once.

Private Attributes

std::size_t read_buffer_size_
 Buffer size to read at once.

Detailed Description

Class of configuration of parsers of messages.

Definition at line 31 of file message_parser_config.h.

Constructor & Destructor Documentation

◆ MessageParserConfig()

msgpack_rpc::config::MessageParserConfig::MessageParserConfig ( )

Constructor.

Definition at line 29 of file message_parser_config.cpp.

Member Function Documentation

◆ read_buffer_size() [1/2]

std::size_t msgpack_rpc::config::MessageParserConfig::read_buffer_size ( ) const
nodiscardnoexcept

Get the buffer size to read at once.

Returns
Buffer size to read at once.

Definition at line 42 of file message_parser_config.cpp.

◆ read_buffer_size() [2/2]

MessageParserConfig & msgpack_rpc::config::MessageParserConfig::read_buffer_size ( std::size_t value)

Set the buffer size to read at once.

Parameters
[in]valueBuffer size to read at once.
Returns
This.

Definition at line 33 of file message_parser_config.cpp.

Member Data Documentation

◆ read_buffer_size_

std::size_t msgpack_rpc::config::MessageParserConfig::read_buffer_size_
private

Buffer size to read at once.

Definition at line 55 of file message_parser_config.h.


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