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

Method setStringValue

Engine/source/console/stringStack.cpp:118–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118void StringStack::setStringValue(const char *s)
119{
120 if(!s)
121 {
122 mLen = 0;
123 mBuffer[mStart] = 0;
124 return;
125 }
126 mLen = dStrlen(s);
127
128 validateBufferSize(mStart + mLen + 2);
129 dStrcpy(mBuffer + mStart, s, mBufferSize - mStart);
130}
131
132void StringStack::advance()
133{

Callers 3

setStringVariableMethod · 0.45
execMethod · 0.45
setBoolVariableFunction · 0.45

Calls 2

dStrcpyFunction · 0.85
dStrlenFunction · 0.50

Tested by

no test coverage detected