Zen API
|
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.
type | Item type. |
destAlloc | Allocator associated with destination memory. |
dest | Destination for the memory copy. |
srcAlloc | Allocator associated with source memory. |
src | Source for the memory copy. |
count | Count of items. |
context | Context for copy operation (allocator specific; may be required by some foreign domain allocators). |
destObjectAlloc | Object memory allocator (passed to kObject_Clone for newly-cloned objects). |
destValueAlloc | Value memory allocator (passed to kObject_Clone for newly-cloned objects). |