MCPcopy Create free account
hub / github.com/ElementsProject/elements / getObjMap

Method getObjMap

src/univalue/lib/univalue.cpp:157–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157void UniValue::getObjMap(std::map<std::string,UniValue>& kv) const
158{
159 if (typ != VOBJ)
160 return;
161
162 kv.clear();
163 for (size_t i = 0; i < keys.size(); i++)
164 kv[keys[i]] = values[i];
165}
166
167bool UniValue::findKey(const std::string& key, size_t& retIdx) const
168{

Callers 2

FundTransactionFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80

Calls 2

clearMethod · 0.45
sizeMethod · 0.45

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.64