MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / copyStringToBuffer

Function copyStringToBuffer

Source/Falcor/Utils/StringUtils.cpp:220–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218}
219
220void copyStringToBuffer(char* buffer, uint32_t bufferSize, const std::string& s)
221{
222 const uint32_t length = std::min(bufferSize - 1, (uint32_t)s.length());
223 s.copy(buffer, length);
224 buffer[length] = '\0';
225}
226
227std::string formatByteSize(size_t size)
228{

Callers 1

addTextboxMethod · 0.85

Calls 3

minFunction · 0.50
lengthMethod · 0.45
copyMethod · 0.45

Tested by

no test coverage detected