MCPcopy Create free account
hub / github.com/DFHack/dfhack / finalize

Method finalize

library/RemoteServer.cpp:132–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132void RPCService::finalize(ServerConnection *owner, std::vector<ServerFunctionBase*> *ftable)
133{
134 this->owner = owner;
135
136 for (size_t i = 0; i < functions.size(); i++)
137 {
138 auto fn = functions[i];
139
140 fn->id = (int16_t)ftable->size();
141 ftable->push_back(fn);
142
143 lookup[fn->name] = fn;
144 }
145}
146
147void RPCService::dumpMethods(std::ostream & out) const
148{

Callers 2

ServerConnectionMethod · 0.80
findFunctionMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected