Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kObject_VInitCloneEx ( kObject  object,
kObject  source,
kAlloc  objectAllocator,
kAlloc  valueAllocator,
kObject  context 
)
protected

Protected virtual method that clones (makes a deep copy of) the specified source object.

This method can be overridden in derived classes to support the kObject_Clone overload with a data allocator argument.

There is no requirement to call kObject_VInitCloneEx from derived VInitCloneEx methods.

Parameters
objectObject instance (not yet initialized).
sourceObject to be cloned (required).
objectAllocatorObject memory allocator (or kNULL for default).
valueAllocatorValue memory allocator (or kNULL for default).
contextContext for copy operation (allocator specific; not usually required).
Returns
Operation status.