C4 Engine
C4 Engine API Documentation

MemoryMgr::CopyMemory

Defined in:  C4Memory.h
Copies a block of memory.
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

MemoryMgr::FillMemory

MemoryMgr::ClearMemory