MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / addTaggedString

Method addTaggedString

Engine/source/app/net/net.cpp:189–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187 }
188
189 const char* RemoteCommandEvent::addTaggedString(const char* str)
190 {
191 NetStringHandle s(str);
192 gNetStringTable->incStringRefScript(s.getIndex());
193
194 char *ret = Con::getReturnBuffer(10);
195 ret[0] = StringTagPrefixByte;
196 dSprintf(ret + 1, 9, "%d", s.getIndex());
197 return ret;
198 }
199
200
201char RemoteCommandEvent::mBuf[1024];

Callers

nothing calls this directly

Calls 4

getReturnBufferFunction · 0.85
dSprintfFunction · 0.85
incStringRefScriptMethod · 0.80
getIndexMethod · 0.45

Tested by

no test coverage detected