Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kPoolAlloc_SetCacheCapacity ( kPoolAlloc  object,
kSize  size 
)

Sets the maximum total amount of memory that can be used to cache buffers upon deallocation.

This property does not affect block-based allocations, which can be limited using the kPoolAlloc_SetBlockCapacity function.

This property is kSIZE_MAX by default.

Parameters
objectkPoolAlloc object.
sizeCached memory capacity, in bytes.
Returns
Operation status.