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

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.
destDestination array of items.
srcSource array of items.
countCount of items.
destAllocDestination memory allocator.
srcAllocSource memory allocator.
Returns
Operation status.