ArenaMemoryResource::ArenaMemoryResource

Constructor.

Windows
MacOS
Linux

References

Module

RigLogicLib

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

Syntax

ArenaMemoryResource
(
    std::size_t initialSize,
    std::size_t regionSize,
    float growthFactor,
    MemoryResource * upstream
)

Remarks

Regions = {initialSize, regionSize, regions[1] * growthFactor, regions[2] * growthFactor, ... , regions[n - 1] * growthFactor}

Parameters

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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss