Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kAlloc_VGet ( kAlloc  alloc,
kSize  size,
void *  mem,
kMemoryAlignment  alignment 
)
protected

Protected virtual method that allocates memory.

This method can be overridden in derived classes to implement custom memory allocation.

Parameters
allocAllocator.
sizeSize of memory to allocate, in bytes.
memReceives pointer to allocated memory (pointer to a pointer).
alignmentMemory alignment.
Returns
Operation status.