Navigation
API > API/Runtime > API/Runtime/ChaosCore > API/Runtime/ChaosCore/TObjectPool
Description
Makes sure the pool has at least enough blocks allocated to store NumItems Not: This isn't a number of free items, but total items. If a pool has 100 items in it and ReserveItems(100); is called - no action will be taken. This function will also never remove blocks from the pool - only ever increase. To reduce the number of blocks see ShrinkTo
| Name | ReserveItems |
| Type | function |
| Header File | /Engine/Source/Runtime/Experimental/ChaosCore/Public/Chaos/ObjectPool.h |
| Include Path | #include "Chaos/ObjectPool.h" |
void ReserveItems
(
int32 NumItems
)
See Also
- ShrinkTo @Param NumItems - Number of items to reserve