nsCRT::memcpy(unicodeTextPtr, *(aAEDesc.dataHandle), text_size * 2);
memcpy(unicodeTextPtr, *(aAEDesc.dataHandle), text_size * 2);
static OSErr AETextToString(AEDesc &aAEDesc, nsString& aOutString, Size& text_size){  OSErr err = noErr;  PRUnichar* unicodeTextPtr;  text_size = 0;  aOutString.Truncate(0);#if TARGET_CARBON  text_size = ::AEGetDescDataSize(&aAEDesc) / 2;  aOutString.SetLength(text_size + 1);  unicodeTextPtr = (PRUnichar*)aOutString.get();  err = AEGetDescData(&aAEDesc, (void *) unicodeTextPtr, text_size * 2);  if (err!=noErr)     return err;#else  text_size = ::GetHandleSize(aAEDesc.dataHandle) / 2;  aOutString.SetLength(text_size + 1);  unicodeTextPtr = (PRUnichar*)aOutString.get();  nsCRT::memcpy(unicodeTextPtr, *(aAEDesc.dataHandle), text_size * 2);#endif  unicodeTextPtr[text_size ] = PRUnichar('\0'); // null terminate it.  return noErr;}