Zen API
 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
objectkPoolAlloc object.
sizeMaximum cached allocation size, in bytes.
Returns
Operation status.