28#include "msgpack_rpc/impl/msgpack_rpc_export.h"
68 void consumed(std::size_t num_bytes);
76 [[nodiscard]] std::optional<ParsedMessage>
try_parse();
Definition of BufferView class.
Class of configuration of parsers of messages.
Class of buffers without memory management.
~MessageParser()
Destructor.
std::size_t read_buffer_size_
Buffer size to read at once.
std::optional< ParsedMessage > try_parse()
Try to parse a message and return it if parsed, throw an exception if the message data is invalid.
void consumed(std::size_t num_bytes)
Set some bytes to be consumed.
MessageParser(const config::MessageParserConfig &config)
Constructor.
BufferView prepare_buffer()
Prepare a buffer.
msgpack::unpacker parser_
Parser.
Definition of MessageParserConfig class.
Namespace of configurations.
Definition of ParsedMessage type.