Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

kStatus kPoolAlloc_SetBlockCapacity | ( | kPoolAlloc | object,
|  | kSize | size
| ) |  |

Sets the maximum total amount of memory that can be used for block-based allocations.

Blocks are dynamically allocated when needed; this property controls the maximum amount of memory that can be used for blocks. This property is kSIZE_MAX by default.

Parameters

  object | kPoolAlloc object.
  size | Block memory capacity, in bytes.

Returns
  Operation status.