Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6ISafeString::copyMemSecure ( P6VOID pDest,
P6SIZE  cDest,
const P6VOID pSource,
P6SIZE  nBytes 
)
pure virtual

Copies nBytes from pSource to pDest.

If the buffers overlap, the result is undefined.

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
SuccessP6R::eOk 
FailureP6R::eInvalidArgpDest and/or pSource are NULL. CDest or nBytes are zero.
P6R::eTooSmallcDest is smaller than nBytes.