Bitcoin Core 28.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
mp Namespace Reference

Functions to serialize / deserialize common bitcoin types. More...

Namespaces

namespace  echo_fields
 
namespace  init_fields
 
namespace  ipc_test_fields
 

Classes

struct  ProxyClient< gen::FooInterface >
 
struct  ProxyClient< ipc::capnp::messages::Echo >
 
struct  ProxyClient< ipc::capnp::messages::Init >
 
struct  ProxyMethod< gen::FooInterface::AddParams >
 
struct  ProxyMethod< gen::FooInterface::PassOutPointParams >
 
struct  ProxyMethod< gen::FooInterface::PassUniValueParams >
 
struct  ProxyMethod< ipc::capnp::messages::Echo::EchoParams >
 
struct  ProxyMethod< ipc::capnp::messages::Init::MakeEchoParams >
 
struct  ProxyServer< gen::FooInterface >
 
struct  ProxyServer< ipc::capnp::messages::Echo >
 
struct  ProxyServer< ipc::capnp::messages::Init >
 
struct  ProxyType< FooImplementation >
 
struct  ProxyType< interfaces::Echo >
 
struct  ProxyType< interfaces::Init >
 

Functions

template<typename LocalType , typename Value , typename Output >
void 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.
 
template<typename LocalType , typename Input , typename ReadDest >
decltype(auto) 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.
 
template<typename Value , typename Output >
void CustomBuildField (TypeList< UniValue >, Priority< 1 >, InvokeContext &invoke_context, Value &&value, Output &&output)
 
template<typename Input , typename ReadDest >
decltype(auto) CustomReadField (TypeList< UniValue >, Priority< 1 >, InvokeContext &invoke_context, Input &&input, ReadDest &&read_dest)
 

Detailed Description

Functions to serialize / deserialize common bitcoin types.

Function Documentation

◆ CustomBuildField() [1/2]

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.

Use Priority<1> so this hook has medium priority, and higher priority hooks could take precedence over this one.

Definition at line 56 of file common-types.h.

Here is the call graph for this function:

◆ CustomBuildField() [2/2]

template<typename Value , typename Output >
void mp::CustomBuildField ( TypeList< UniValue > ,
Priority< 1 > ,
InvokeContext & invoke_context,
Value && value,
Output && output )

Definition at line 90 of file common-types.h.

◆ CustomReadField() [1/2]

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.

Use Priority<1> so this hook has medium priority, and higher priority hooks could take precedence over this one.

Definition at line 78 of file common-types.h.

◆ CustomReadField() [2/2]

template<typename Input , typename ReadDest >
decltype(auto) mp::CustomReadField ( TypeList< UniValue > ,
Priority< 1 > ,
InvokeContext & invoke_context,
Input && input,
ReadDest && read_dest )

Definition at line 98 of file common-types.h.