Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

kStatus kObject_GetMem | ( | kObject | object,
|  | kSize | size,
|  | void * | mem
| ) |  |
| protected

Protected method called by derived classes to allocate 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

  object | Object instance.
  size | Size of memory to allocate, in bytes.
  mem | Receives pointer to allocated memory (pointer to a pointer).

Returns
  Operation status.