Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

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

Sets the size limit for memory requests that can be cached upon deallocation.

Small allocations are typically configured to be provided by block-based allocation, which automatically caches deallocated buffers for reuse. But larger (individually allocated) buffers can also be cached upon deallocation for later use. This property controls the maximum buffer size than can be cached upon deallocation.

This property is zero by default (caching of individual allocations is disabled).

Parameters

  object | kPoolAlloc object.
  size | Maximum cached allocation size, in bytes.

Returns
  Operation status.