Bitcoin Core  31.0.0
P2P Digital Currency
Namespaces | Functions | Variables
type-data.h File Reference
#include <mp/util.h>
#include <concepts>
#include <span>
Include dependency graph for type-data.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 mp
 Functions to serialize / deserialize common bitcoin types.
 

Functions

template<typename LocalType , typename Value , typename Output >
void mp::CustomBuildField (TypeList< LocalType >, Priority< 2 >, InvokeContext &invoke_context, Value &&value, Output &&output) requires(std
 Generic ::capnp::Data field builder for any C++ type that can be converted to a span of bytes, like std::vector<char> or std::array<uint8_t>, or custom blob types like uint256 or PKHash with data() and size() methods pointing to bytes. More...
 
template<typename LocalType , typename Input , typename ReadDest >
decltype(auto) mp::CustomReadField (TypeList< LocalType >, Priority< 2 >, InvokeContext &invoke_context, Input &&input, ReadDest &&read_dest) requires(std
 

Variables

template<typename T , typename U >
concept mp::IsSpanOf
 
template<typename T >
concept mp::IsByteSpan