36 template <
template <
bool>
class Archive>
40 ar.serialize_varint(hi);
41 if (!ar.stream().good())
43 ar.serialize_varint(lo);
44 if (!ar.stream().good())
52 template <
template <
bool>
class Archive>
55 if (!ar.stream().good())
57 const uint64_t hi = ((diff >> 64) & 0xffffffffffffffff).convert_to<
uint64_t>();
58 const uint64_t lo = (diff & 0xffffffffffffffff).convert_to<uint64_t>();
59 ar.serialize_varint(hi);
60 ar.serialize_varint(lo);
61 if (!ar.stream().good())
bool_constant< true > true_type
Holds cryptonote related classes and helpers.
Simple DSL AAPI based on.
a descriptor for dispatching serialize
unsigned __int64 uint64_t
boost::multiprecision::uint128_t difficulty_type
bool do_serialize(Archive< false > &ar, cryptonote::difficulty_type &diff)