Bitcoin Core 29.99.0
P2P Digital Currency
Namespaces | Functions
type-chrono.h File Reference
#include <mp/util.h>
#include <chrono>
Include dependency graph for type-chrono.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.
 

Functions

template<class Rep , class Period , typename Value , typename Output >
void mp::CustomBuildField (TypeList< std::chrono::duration< Rep, Period > >, Priority< 1 >, InvokeContext &invoke_context, Value &&value, Output &&output)
 Overload CustomBuildField and CustomReadField to serialize std::chrono parameters and return values as numbers. More...
 
template<class Rep , class Period , typename Input , typename ReadDest >
decltype(auto) mp::CustomReadField (TypeList< std::chrono::duration< Rep, Period > >, Priority< 1 >, InvokeContext &invoke_context, Input &&input, ReadDest &&read_dest)