OGLplus  (0.59.0) a C++ wrapper for rendering APIs

serialize.hpp File Reference

Go to the source code of this file.

Namespaces

 eagine
 Common code is placed in this namespace.
 
 eagine::msgbus
 Message bus code is placed in this namespace.
 

Typedefs

using eagine::msgbus::default_serializer_backend = string_serializer_backend
 Alias for default serialization backend for bus messages. More...
 
using eagine::msgbus::default_deserializer_backend = string_deserializer_backend
 Alias for default deserialization backend for bus messages. More...
 

Functions

template<typename T >
auto eagine::msgbus::default_serialize_buffer_for (const T &inst)
 Returns a suitable buffer for the serialization of the specified object.
 
template<typename Backend >
auto eagine::msgbus::serialize_message_header (message_id msg_id, const message_view &msg, Backend &backend) -> std::enable_if_t< std::is_base_of_v< serializer_backend, Backend >, serialization_errors >
 Serializes a bus message header with the specified serializer backend. More...
 
template<typename Backend >
auto eagine::msgbus::serialize_message (message_id msg_id, const message_view &msg, Backend &backend) -> std::enable_if_t< std::is_base_of_v< serializer_backend, Backend >, serialization_errors >
 Serializes a bus message with the specified serializer backend. More...
 
template<typename Backend >
auto eagine::msgbus::deserialize_message_header (identifier &class_id, identifier &method_id, stored_message &msg, Backend &backend) -> std::enable_if_t< std::is_base_of_v< deserializer_backend, Backend >, deserialization_errors >
 Deserializes a bus message header with the specified deserializer backend. More...
 
template<typename Backend >
auto eagine::msgbus::deserialize_message (identifier &class_id, identifier &method_id, stored_message &msg, Backend &backend) -> std::enable_if_t< std::is_base_of_v< deserializer_backend, Backend >, deserialization_errors >
 Deserializes a bus message with the specified deserializer backend. More...
 
template<typename Backend >
auto eagine::msgbus::deserialize_message (message_id &msg_id, stored_message &msg, Backend &backend) -> std::enable_if_t< std::is_base_of_v< deserializer_backend, Backend >, deserialization_errors >
 Deserializes a bus message with the specified deserializer backend. More...
 
template<typename T >
auto eagine::msgbus::default_serialize (T &value, memory::block blk) -> serialization_result< memory::const_block >
 Uses the default backend to serialize a value into a memory block. More...
 
template<typename T >
auto eagine::msgbus::default_serialize_packed (T &value, memory::block blk, data_compressor compressor) -> serialization_result< memory::const_block >
 Uses backend and compressor to serialize and pack a value into a memory block. More...
 
auto eagine::msgbus::default_serialize_message_type (message_id msg_id, memory::block blk)
 Default-serializes the specified message id into a memory block. More...
 
template<typename T >
auto eagine::msgbus::default_deserialize (T &value, memory::const_block blk) -> deserialization_result< memory::const_block >
 Uses the default backend to deserialize a value from a memory block. More...
 
template<typename T >
auto eagine::msgbus::default_deserialize_packed (T &value, memory::const_block blk, data_compressor compressor) -> deserialization_result< memory::const_block >
 Uses backend and compressor to deserialize and unpack a value from a block. More...
 
auto eagine::msgbus::default_deserialize_message_type (message_id &msg_id, memory::const_block blk)
 Default-deserializes the specified message id from a memory block. More...
 

Detailed Description

Copyright Matus Chochlik. Distributed under the Boost Software License, Version 1.0. See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt


Copyright © 2015-2021 Matúš Chochlík.
<chochlik -at -gmail.com>
Documentation generated on Tue Apr 13 2021 by Doxygen (version 1.8.17).