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

Method writeFormattedBuffer

Engine/source/core/stream/stream.cpp:126–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126bool Stream::writeFormattedBuffer(const char *format, ...)
127{
128 char buffer[4096];
129 va_list args;
130 va_start(args, format);
131 const S32 length = dVsprintf(buffer, sizeof(buffer), format, args);
132
133 // Sanity!
134 AssertFatal(length <= sizeof(buffer), "writeFormattedBuffer - String format exceeded buffer size. This will cause corruption.");
135
136 return write(length, buffer);
137}
138
139void Stream::readString(char buf[256])
140{

Callers 1

PrintMethod · 0.80

Calls 2

dVsprintfFunction · 0.85
writeFunction · 0.50

Tested by

no test coverage detected