Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kAlloc_VCopy ( kAlloc  alloc,
kAlloc  destAlloc,
void *  dest,
kAlloc  srcAlloc,
const void *  src,
kSize  size,
kObject  context 
)
protected

Protected virtual method that copies memory.

destAlloc, srcAlloc, or both will be equal to the alloc argument, enabling the receive to determine the copy direction.

This method should be overriden by foreign memory allocators and/or allocators that make use of context.

Parameters
allocAllocator.
destAllocAllocator associated with destination memory.
destDestination for the memory copy.
srcAllocAllocator associated with source memory.
srcSource for the memory copy.
sizeSize of memory block to be copied, in bytes.
contextContext for copy operation (allocator specific; may be required by some allocators).
Returns
Operation status.