Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kCloneItems ( kType  type,
kAlloc  destAlloc,
void *  dest,
kAlloc  srcAlloc,
const void *  src,
kSize  count,
kObject  context,
kAlloc  destObjectAlloc,
kAlloc  destValueAlloc 
)

Performs a deep copy of a generic array of items.

Value types are copied; reference types are cloned. If source value types were allocated in foreign memory, will attempt to export values from foreign memory to local memory using the source allocator's kAlloc_Export implementation.

Parameters
typeItem type.
destAllocAllocator associated with destination memory.
destDestination for the memory copy.
srcAllocAllocator associated with source memory.
srcSource for the memory copy.
countCount of items.
contextContext for copy operation (allocator specific; may be required by some foreign domain allocators).
destObjectAllocObject memory allocator (passed to kObject_Clone for newly-cloned objects).
destValueAllocValue memory allocator (passed to kObject_Clone for newly-cloned objects).
Returns
Operation status.