MCPcopy Create free account
hub / github.com/LUX-Core/lux / parseJsonIntValueIntoVector

Function parseJsonIntValueIntoVector

src/cpp-ethereum/test/libtesteth/ImportTest.cpp:445–454  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

443}
444
445void parseJsonIntValueIntoVector(json_spirit::mValue const& _json, vector<int>& _out)
446{
447 if (_json.type() == UniValue_type)
448 {
449 for (auto const& val: _json.get_array())
450 _out.push_back(val.get_int());
451 }
452 else
453 _out.push_back(_json.get_int());
454}
455
456template<class T>
457bool inArray(vector<T> const& _array, const T _val)

Callers 1

Calls 3

typeMethod · 0.45
push_backMethod · 0.45
get_intMethod · 0.45

Tested by

no test coverage detected