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

Method reset

library/RemoteClient.cpp:314–329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

312}
313
314void RPCFunctionBase::reset(bool free)
315{
316 if (free)
317 {
318 delete p_in;
319 delete p_out;
320 p_in = p_out = NULL;
321 }
322 else
323 {
324 if (p_in)
325 p_in->Clear();
326 if (p_out)
327 p_out->Clear();
328 }
329}
330
331bool RemoteFunctionBase::bind(color_ostream &out, RemoteClient *client,
332 const std::string &name, const std::string &plugin)

Callers 2

bindMethod · 0.45
run_commandMethod · 0.45

Calls 1

ClearMethod · 0.45

Tested by

no test coverage detected