UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FAsyncReallocationRequest Class Reference

#include <GPUDefragAllocator.h>

Public Member Functions

 FAsyncReallocationRequest (void *InCurrentBaseAddress, int32 InNewSize, FThreadSafeCounter *InRequestStatus)
 
 ~FAsyncReallocationRequest ()
 
bool IsAllocation () const
 
bool IsReallocation () const
 
bool IsCanceled () const
 
bool HasCompleted () const
 
bool HasStarted () const
 
voidGetOldBaseAddress () const
 
voidGetNewBaseAddress () const
 
int32 GetNewSize () const
 

Friends

class FGPUDefragAllocator
 

Detailed Description

Asynchronous reallocation request. Requests are created and deleted by the user, but it must stick around until the allocator is done with it. Requests may be fulfilled immediately, check HasCompleted() after making the request.

Constructor & Destructor Documentation

◆ FAsyncReallocationRequest()

FAsyncReallocationRequest::FAsyncReallocationRequest ( void InCurrentBaseAddress,
int32  InNewSize,
FThreadSafeCounter InRequestStatus 
)
inline

Creates a new reallocation request.

Parameters
InCurrentBaseAddressCurrent base address
InNewSizeRequested new size, in uint8s
InRequestStatusWill be decremented by one when the request has been completed. Can be nullptr.

◆ ~FAsyncReallocationRequest()

FAsyncReallocationRequest::~FAsyncReallocationRequest ( )
inline

Destructor.

Member Function Documentation

◆ GetNewBaseAddress()

void * FAsyncReallocationRequest::GetNewBaseAddress ( ) const
inline

Returns the new base address, or nullptr if the request hasn't started yet.

◆ GetNewSize()

int32 FAsyncReallocationRequest::GetNewSize ( ) const
inline

Returns the requested new memory size (in uint8s).

◆ GetOldBaseAddress()

void * FAsyncReallocationRequest::GetOldBaseAddress ( ) const
inline

Returns the original base address.

◆ HasCompleted()

bool FAsyncReallocationRequest::HasCompleted ( ) const
inline

Returns true if the request has been completed.

◆ HasStarted()

bool FAsyncReallocationRequest::HasStarted ( ) const
inline

Returns true if the allocator has started processing the request (true for completed requests as well).

◆ IsAllocation()

bool FAsyncReallocationRequest::IsAllocation ( ) const
inline

Returns true if the request is for a new allocation.

◆ IsCanceled()

bool FAsyncReallocationRequest::IsCanceled ( ) const
inline

Returns true if the request has been canceled.

◆ IsReallocation()

bool FAsyncReallocationRequest::IsReallocation ( ) const
inline

Returns true if the request is for a reallocation.

Friends And Related Symbol Documentation

◆ FGPUDefragAllocator


The documentation for this class was generated from the following file: