5#include <boost/container/flat_map.hpp>
6#include <boost/container/flat_set.hpp>
13 template<
typename Stream,
typename T,
typename A>
17 if( !std::is_fundamental<T>::value ) {
18 for(
const auto& item :
value ) {
21 }
else if(
value.size() ) {
26 template<
typename Stream,
typename T,
typename A>
33 if( !std::is_fundamental<T>::value ) {
34 for(
auto& item :
value ) {
37 }
else if(
value.size() ) {
42 template<
typename Stream,
typename A>
50 template<
typename Stream,
typename A>
61 template<
typename Stream,
typename T,
typename...
U>
66 template<
typename Stream,
typename T,
typename...
U>
71 template<
typename Stream,
typename T,
typename...
U>
76 template<
typename Stream,
typename T,
typename...
U>
81 template<
typename Stream,
typename K,
typename V,
typename...
U>
86 template<
typename Stream,
typename K,
typename V,
typename...
U>
91 template<
typename Stream,
typename K,
typename V,
typename...
U>
96 template<
typename Stream,
typename K,
typename V,
typename...
U>
103 template<
typename T,
typename...
U>
107 vars.reserve( vec.size() );
108 for(
const auto& item : vec ) {
109 vars.emplace_back( item );
111 vo = std::move(vars);
114 template<
typename T,
typename...
U>
119 vec.resize( vars.size() );
120 for(
uint32_t i = 0; i < vars.size(); ++i ) {
125 template<
typename...
U>
134 template<
typename...
U>
139 vec.resize( str.size() / 2 );
146 template<
typename T,
typename...
U>
151 template<
typename T,
typename...
U>
156 template<
typename T,
typename...
U>
161 template<
typename T,
typename...
U>
166 template<
typename K,
typename V,
typename...
U >
171 template<
typename K,
typename V,
typename...
U>
176 template<
typename K,
typename V,
typename...
U >
181 template<
typename K,
typename V,
typename...
U>
stores null, int64, uint64, double, bool, string, std::vector<variant>, and variant_object's.
const string & get_string() const
Concept for reading and writing characters.
#define FC_ASSERT(TEST,...)
Checks a condition and throws an assert_exception if the test is FALSE.
void to_variant_from_set(const Set< T, U... > &s, fc::variant &vo)
void from_variant_to_flat_set(const fc::variant &v, Set< T, U... > &s)
void from_variant_to_flat_map(const variant &v, Map< K, V, U... > &m)
void to_variant_from_map(const Map< K, V, U... > &m, fc::variant &vo)
void pack_map(Stream &s, const Map< K, V, U... > &value)
void pack_set(Stream &s, const Set< T, U... > &value)
void unpack_flat_map(Stream &s, Map< K, V, U... > &value)
void unpack_flat_set(Stream &s, Set< T, U... > &value)
void unpack(Stream &s, std::deque< T > &value)
void pack(Stream &s, const std::deque< T > &value)
std::vector< fc::variant > variants
fc::string to_hex(const char *d, uint32_t s)
void from_variant(const fc::variant &v, sysio::chain::chain_id_type &cid)
void to_variant(const sysio::chain::shared_public_key &var, fc::variant &vo)
#define T(meth, val, expected)
#define MAX_SIZE_OF_BYTE_ARRAYS
#define MAX_NUM_ARRAY_ELEMENTS