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

Method getCopy

Engine/source/core/stringBuffer.cpp:367–375  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

365}
366
367void StringBuffer::getCopy(UTF16 *buff, const U32 buffSize) const
368{
369 incRequestCount16();
370 // Just copy it out.
371 AssertFatal(mBuffer.last() == 0, "StringBuffer::get UTF8 - not a null terminated string!");
372 dMemcpy(buff, mBuffer.address(), sizeof(UTF16) * getMin(buffSize, (U32)mBuffer.size()));
373 // ensure null termination.
374 buff[buffSize-1] = 0;
375}
376
377UTF8* StringBuffer::createCopy8() const
378{

Callers 1

updateHistoryMethod · 0.45

Calls 4

dMemcpyFunction · 0.50
lastMethod · 0.45
addressMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected