MemoryMgr::CopyMemory
Defined in:
Copies a block of memory.
C4Memory.h
Prototype
static void CopyMemory(const void *source, void *dest, uint32 size);
Parameters
source |
A pointer to the beginning of the source. |
dest |
A pointer to the beginning of the destination. |
size |
The number of bytes to copy. |
Description
The CopyMemory
function copies the number of bytes specified by the size
parameter from the memory location specified by the source
parameter to the memory location specified by the dest
parameter.If the
source
and dest
pointers are not separated by at least size
bytes, then the result of the copy operation is undefined. That is, the source and destination memory buffers should not overlap.
See Also