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

Method copyToBuffer

Engine/source/core/strings/unicode.cpp:124–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122 }
123
124 void copyToBuffer(UTF16 *outBuffer, U32 lenToCopy, bool nullTerminate = true) const
125 {
126 U32 copy = getMin(mLength, lenToCopy);
127 if(mString && copy > 0)
128 dMemcpy(outBuffer, mString, copy * sizeof(UTF16));
129
130 if(nullTerminate)
131 outBuffer[copy] = 0;
132 }
133};
134
135/// Cache for UTF16 strings

Callers 1

convertUTF8toUTF16NFunction · 0.80

Calls 1

dMemcpyFunction · 0.50

Tested by

no test coverage detected