Zen API
|
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).
object | kPoolAlloc object. |
size | Maximum cached allocation size, in bytes. |