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

Function getString

src/DHTMessageFactoryImpl.cc:104–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102
103namespace {
104const String* getString(const Dict* dict, const std::string& key)
105{
106 const String* c = downcast<String>(dict->get(key));
107 if (c) {
108 return c;
109 }
110 else {
111 throw DL_ABORT_EX(fmt("Malformed DHT message. Missing %s", key.c_str()));
112 }
113}
114} // namespace
115
116namespace {

Callers 3

createQueryMessageMethod · 0.70
createResponseMessageMethod · 0.70

Calls 2

fmtFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected