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

Method convertToBuffer

Engine/source/console/console.cpp:61–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61char* ConsoleValue::convertToBuffer() const
62{
63 char* buffer = static_cast<char*>(sConversionAllocator.alloc(32));
64
65 if (type == ConsoleValueType::cvFloat)
66 dSprintf(buffer, 32, "%.9g", f);
67 else
68 dSprintf(buffer, 32, "%lld", i);
69
70 return buffer;
71}
72
73const char* ConsoleValue::getConsoleData() const
74{

Callers

nothing calls this directly

Calls 2

dSprintfFunction · 0.85
allocMethod · 0.45

Tested by

no test coverage detected