Bitcoin Core 29.99.0
P2P Digital Currency
Namespaces | Functions
type-number.h File Reference
#include <mp/util.h>
Include dependency graph for type-number.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<typename LocalType , typename Value >
LocalType mp::BuildPrimitive (InvokeContext &invoke_context, const Value &value, TypeList< LocalType >, typename std::enable_if< std::is_enum< Value >::value >::type *enable=nullptr)
 
template<typename LocalType , typename Value >
LocalType mp::BuildPrimitive (InvokeContext &invoke_context, const Value &value, TypeList< LocalType >, typename std::enable_if< std::is_integral< Value >::value, int >::type *enable=nullptr)
 
template<typename LocalType , typename Value >
LocalType mp::BuildPrimitive (InvokeContext &invoke_context, const Value &value, TypeList< LocalType >, typename std::enable_if< std::is_floating_point< Value >::value >::type *enable=nullptr)
 
template<typename LocalType , typename Input , typename ReadDest >
decltype(auto) mp::CustomReadField (TypeList< LocalType >, Priority< 1 >, InvokeContext &invoke_context, Input &&input, ReadDest &&read_dest, typename std::enable_if< std::is_enum< LocalType >::value >::type *enable=0)
 
template<typename LocalType , typename Input , typename ReadDest >
decltype(auto) mp::CustomReadField (TypeList< LocalType >, Priority< 1 >, InvokeContext &invoke_context, Input &&input, ReadDest &&read_dest, typename std::enable_if< std::is_integral< LocalType >::value >::type *enable=nullptr)
 
template<typename LocalType , typename Input , typename ReadDest >
decltype(auto) mp::CustomReadField (TypeList< LocalType >, Priority< 1 >, InvokeContext &invoke_context, Input &&input, ReadDest &&read_dest, typename std::enable_if< std::is_floating_point< LocalType >::value >::type *enable=0)