Bitcoin Core  26.99.0
P2P Digital Currency
Classes | Namespaces | Functions
common-types.h File Reference
#include <clientversion.h>
#include <streams.h>
#include <univalue.h>
#include <cstddef>
#include <mp/proxy-types.h>
#include <type_traits>
#include <utility>
Include dependency graph for common-types.h:

Go to the source code of this file.

Classes

struct  ipc::capnp::Serializable< T >
 Use SFINAE to define Serializeable<T> trait which is true if type T has a Serialize(stream) method, false otherwise. More...
 
struct  ipc::capnp::Unserializable< T >
 Use SFINAE to define Unserializeable<T> trait which is true if type T has an Unserialize(stream) method, false otherwise. More...
 

Namespaces

 ipc
 
 ipc::capnp
 
 mp
 Functions to serialize / deserialize common bitcoin types.
 

Functions

template<typename LocalType , typename Value , typename Output >
void mp::CustomBuildField (TypeList< LocalType >, Priority< 1 >, InvokeContext &invoke_context, Value &&value, Output &&output, std::enable_if_t< ipc::capnp::Serializable< LocalType >::value &&std::is_same_v< LocalType, std::remove_cv_t< std::remove_reference_t< LocalType >>>> *enable=nullptr)
 Overload multiprocess library's CustomBuildField hook to allow any serializable object to be stored in a capnproto Data field or passed to a canproto interface. More...
 
template<typename LocalType , typename Input , typename ReadDest >
decltype(auto) mp::CustomReadField (TypeList< LocalType >, Priority< 1 >, InvokeContext &invoke_context, Input &&input, ReadDest &&read_dest, std::enable_if_t< ipc::capnp::Unserializable< LocalType >::value > *enable=nullptr)
 Overload multiprocess library's CustomReadField hook to allow any object with an Unserialize method to be read from a capnproto Data field or returned from canproto interface. More...
 
template<typename Value , typename Output >
void mp::CustomBuildField (TypeList< UniValue >, Priority< 1 >, InvokeContext &invoke_context, Value &&value, Output &&output)
 
template<typename Input , typename ReadDest >
decltype(auto) mp::CustomReadField (TypeList< UniValue >, Priority< 1 >, InvokeContext &invoke_context, Input &&input, ReadDest &&read_dest)