Important: The information in this document is obsolete and should not be used for new development.
OTMemcpy
Copies data from one memory location to another memory location.C INTERFACE
void OTMemcpy (void* dest, const void* src, size_t nBytes)C++ INTERFACE
None. C++ applications use the C interface to this function.PARAMETERS
dest
- A pointer to the location into which you are copying memory.
src
- A pointer to the location from which you are copying memory.
nBytes
- The number of bytes of memory you want to copy.
DISCUSSION
You can use this function for all memory operations except where
To compare the contents of two memory areas, use the
- the source or destination locations hold uncached memory. In these cases, the Mac OS function
BlockMoveDataUncached
is much faster.- the source and destination areas overlap.
Use the
OTMemmove
function to copy data where the source and destination areas overlap. Otherwise useOTMemcpy
because it is faster.
OTMemcmp
function.