Module |
|
Header |
/Engine/Plugins/Animation/RigLogic/Source/RigLogicLib/Public/pma/resources/ArenaMemoryResource.h |
Include |
#include "pma/resources/ArenaMemoryResource.h" |
Source |
/Engine/Plugins/Animation/RigLogic/Source/RigLogicLib/Private/pma/resources/ArenaMemoryResource.cpp |
ArenaMemoryResource
(
std::size_t regionSize,
float growthFactor,
MemoryResource * upstream
)
Regions = {initialSize, regionSize, regions[1] * growthFactor, regions[2] * growthFactor, ... , regions[n - 1] * growthFactor}
Parameter |
Description |
---|---|
regionSize |
When a memory region backing allocation requests has not enough free space to serve an allocation, an additional region is allocated for both the current and all subsequent allocations. This parameter denotes the size of the initial and all subsequently allocated regions. |
growthFactor |
It describes by which factor should each subsequently allocated region be scaled, relative to the previous region. A list of possible region allocation would look like: |
upstream |
The backing memory region will be allocated using the given upstream MemoryResource. |