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

Function uvTypeName

src/univalue/lib/univalue.cpp:221–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219}
220
221const char *uvTypeName(UniValue::VType t)
222{
223 switch (t) {
224 case UniValue::VNULL: return "null";
225 case UniValue::VBOOL: return "bool";
226 case UniValue::VOBJ: return "object";
227 case UniValue::VARR: return "array";
228 case UniValue::VSTR: return "string";
229 case UniValue::VNUM: return "number";
230 }
231
232 // not reached
233 return nullptr;
234}
235
236const UniValue& find_value(const UniValue& obj, const std::string& name)
237{

Callers 3

GetImportTimestampFunction · 0.85
RPCTypeCheckArgumentFunction · 0.85
RPCTypeCheckObjFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected