Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kObject_GetMemZero ( kObject  object,
kSize  size,
void *  mem 
)
protected

Protected method called by derived classes to allocate and zero memory using the object's allocator.

This method is provided for convenience; alternatively, the allocator provided by kObject_Alloc can also be used directly.

Parameters
objectObject instance.
sizeSize of memory to allocate, in bytes.
memReceives pointer to allocated memory (pointer to a pointer).
Returns
Operation status.