| 365 | } |
| 366 | |
| 367 | void StringBuffer::getCopy(UTF16 *buff, const U32 buffSize) const |
| 368 | { |
| 369 | incRequestCount16(); |
| 370 | // Just copy it out. |
| 371 | AssertFatal(mBuffer.last() == 0, "StringBuffer::get UTF8 - not a null terminated string!"); |
| 372 | dMemcpy(buff, mBuffer.address(), sizeof(UTF16) * getMin(buffSize, (U32)mBuffer.size())); |
| 373 | // ensure null termination. |
| 374 | buff[buffSize-1] = 0; |
| 375 | } |
| 376 | |
| 377 | UTF8* StringBuffer::createCopy8() const |
| 378 | { |
no test coverage detected