Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
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

namespace  mp
 Functions to serialize / deserialize common bitcoin types.

Concepts

concept  mp::IsSpanOf
concept  mp::IsByteSpan

Functions

template<typename LocalType, typename Value, typename Output>
requires (std::is_same_v<decltype(output.get()), ::capnp::Data::Builder> && IsByteSpan<LocalType>)
void mp::CustomBuildField (TypeList< LocalType >, Priority< 2 >, InvokeContext &invoke_context, Value &&value, Output &&output)
template<typename LocalType, typename Input, typename ReadDest>
requires (std::is_same_v<decltype(input.get()), ::capnp::Data::Reader> && IsByteSpan<LocalType>)
decltype(auto) mp::CustomReadField (TypeList< LocalType >, Priority< 2 >, InvokeContext &invoke_context, Input &&input, ReadDest &&read_dest)