MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / updateBuffer8

Method updateBuffer8

Engine/source/core/stringBuffer.cpp:407–415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

405}
406
407void StringBuffer::updateBuffer8()
408{
409 U32 slackLen = getUTF8BufferSizeEstimate();
410 mBuffer8.setSize(slackLen);
411 U32 len = convertUTF16toUTF8N(mBuffer.address(), mBuffer8.address(), slackLen);
412 mBuffer8.setSize(len+1);
413 mBuffer8.compact();
414 mDirty8 = false;
415}
416
417
418#if defined(TORQUE_DEBUG)

Callers 1

getPtr8Method · 0.80

Calls 4

convertUTF16toUTF8NFunction · 0.85
setSizeMethod · 0.45
addressMethod · 0.45
compactMethod · 0.45

Tested by

no test coverage detected