Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

kStatus kUserAlloc_Construct | ( | kUserAlloc * | object,
|  | kApiMemAllocFx | allocFx,
|  | kApiMemFreeFx | freeFx,
|  | kPointer | provider,
|  | kAlloc | allocator
| ) |  |

Constructs a new kUserAlloc instance.

Parameters

  object | Receives the constructed kUserAlloc instance.
  allocFx | User-defined memory allocation function.
  freeFx | User-defined memory free function.
  provider | User-defined context pointer.
  allocator | Memory allocator for this object instance (or kNULL for default).

Returns
  Operation status.