MCPcopy Create free account
hub / github.com/aria2/aria2 / getInteger

Function getInteger

src/DHTMessageFactoryImpl.cc:117–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115
116namespace {
117const Integer* getInteger(const Dict* dict, const std::string& key)
118{
119 const Integer* c = downcast<Integer>(dict->get(key));
120 if (c) {
121 return c;
122 }
123 else {
124 throw DL_ABORT_EX(fmt("Malformed DHT message. Missing %s", key.c_str()));
125 }
126}
127} // namespace
128
129namespace {

Callers 2

createQueryMessageMethod · 0.70
createResponseMessageMethod · 0.70

Calls 2

fmtFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected