Bitcoin Core  29.1.0
P2P Digital Currency
Classes | Functions | Variables
ipc::capnp Namespace Reference

Classes

struct  Context
 Cap'n Proto context struct. More...
 

Functions

template<typename S >
auto Wrap (S &s)
 Construct a ParamStream wrapping a data stream with serialization parameters needed to pass transaction objects between bitcoin processes. More...
 
std::unique_ptr< ProtocolMakeCapnpProtocol ()
 

Variables

template<typename T >
concept Deserializable = std::is_constructible_v<T, ::deserialize_type, ::DataStream&>
 Detect if type has a deserialize_type constructor, which is used to deserialize types like CTransaction that can't be unserialized into existing objects because they are immutable. More...
 

Function Documentation

◆ MakeCapnpProtocol()

std::unique_ptr< Protocol > ipc::capnp::MakeCapnpProtocol ( )

Definition at line 102 of file protocol.cpp.

Here is the caller graph for this function:

◆ Wrap()

template<typename S >
auto ipc::capnp::Wrap ( S s)

Construct a ParamStream wrapping a data stream with serialization parameters needed to pass transaction objects between bitcoin processes.

In the future, more params may be added here to serialize other objects that require serialization parameters. Params should just be chosen to serialize objects completely and ensure that serializing and deserializing objects with the specified parameters produces equivalent objects. It's also harmless to specify serialization parameters here that are not used.

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

Here is the caller graph for this function:

Variable Documentation

◆ Deserializable

template<typename T >
concept ipc::capnp::Deserializable = std::is_constructible_v<T, ::deserialize_type, ::DataStream&>

Detect if type has a deserialize_type constructor, which is used to deserialize types like CTransaction that can't be unserialized into existing objects because they are immutable.

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