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

Method getArgBuffer

Engine/source/console/stringStack.h:151–158  ·  view source on GitHub ↗

Return a buffer we can use for arguments. This updates the function offset.

Source from the content-addressed store, hash-verified

149 ///
150 /// This updates the function offset.
151 char *getArgBuffer(U32 size)
152 {
153 AssertFatal(Con::isMainThread(), "Manipulating console arg buffer from a secondary thread!");
154 validateBufferSize(mStart + mFunctionOffset + size);
155 char *ret = mBuffer + mStart + mFunctionOffset;
156 mFunctionOffset += size;
157 return ret;
158 }
159
160 /// Clear the function offset.
161 void clearFunctionOffset()

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