Copies nBytes from pSource to pDest.
If the buffers overlap, moveMem() ensures that the oringal bytes in pSource are copied into pDest before being overwritten.
This method has been designed to prevent the compiler from optimizing away the call in cases where the destination is not reference again.
- See Also
- p6ISafeString::setMem() for further information.
- Parameters
-
pDest | [ in ] A pointer to the destination buffer. |
cDest | [ in ] The size of the destination buffer in bytes. |
pSource | [ in ] A pointer to the source buffer. |
nBytes | [ in ] The number of bytes to copy into pDest from pSource. |
- Returns
Success | P6R::eOk | |
Failure | P6R::eInvalidArg | pDest and/or pSource are NULL. CDest or nBytes are zero. |
P6R::eTooSmall | cDest is smaller than nBytes. |