| 397 | } |
| 398 | |
| 399 | const 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 |
no test coverage detected