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 initialSize,
std::size_t regionSize,
float growthFactor,
MemoryResource * upstream
)
Regions = {initialSize, regionSize, regions[1] * growthFactor, regions[2] * growthFactor, ... , regions[n - 1] * growthFactor}
Parameter |
Description |
---|---|
initialSize |
The size of the first allocated region from which allocation requests are served. |
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 these additionally 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. |