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

Method updateBuffer8

engine/source/string/stringBuffer.cc:423–431  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

421}
422
423void StringBuffer::updateBuffer8()
424{
425 U32 slackLen = getUTF8BufferSizeEstimate();
426 mBuffer8.setSize(slackLen);
427 U32 len = convertUTF16toUTF8(mBuffer.address(), mBuffer8.address(), slackLen);
428 mBuffer8.setSize(len+1);
429 mBuffer8.compact();
430 mDirty8 = false;
431}
432
433
434#if defined(TORQUE_DEBUG)

Callers

nothing calls this directly

Calls 4

convertUTF16toUTF8Function · 0.70
setSizeMethod · 0.45
addressMethod · 0.45
compactMethod · 0.45

Tested by

no test coverage detected