MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / getArgBuffer

Method getArgBuffer

Engine/source/console/stringStack.cpp:103–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103char *StringStack::getArgBuffer(U32 size)
104{
105 AssertFatal(Con::isMainThread(), "Manipulating console arg buffer from a secondary thread!");
106 validateBufferSize(mStart + mFunctionOffset + size);
107 char *ret = mBuffer + mStart + mFunctionOffset;
108 mFunctionOffset += size;
109 return ret;
110}
111
112void StringStack::clearFunctionOffset()
113{

Callers 5

getArgBufferFunction · 0.80
getFloatArgFunction · 0.80
getIntArgFunction · 0.80
getBoolArgFunction · 0.80
getStringArgFunction · 0.80

Calls 1

isMainThreadFunction · 0.85

Tested by

no test coverage detected