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

Method getPtr

engine/source/string/stringBuffer.cc:399–409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

397}
398
399const UTF16* StringBuffer::getPtr() const
400{
401 incRequestCount16();
402 // get a pointer to the StringBuffer's data store.
403 // this pointer is volatile, and not thread safe.
404 // use this in situations where you can be sure that the StringBuffer will
405 // not be modified out from under you.
406 // the key here is, you avoid yet another data copy. data copy is slow on
407 // most modern hardware.
408 return mBuffer.address();
409}
410
411// [neo, 5/7/2007]: cant be constant as it calles updateBuffer8()!
412//const UTF8* StringBuffer::getPtr8() const

Callers 6

updateHistoryMethod · 0.80
drawTextMethod · 0.80
drawAtomTextMethod · 0.80
getTextPositionMethod · 0.80
splitAtomListEmitMethod · 0.80

Calls 1

addressMethod · 0.45

Tested by

no test coverage detected