Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
FMemoryImageAllocatorBase Class Reference

#include <MemoryImage.h>

+ Inheritance diagram for FMemoryImageAllocatorBase:
+ Collaboration diagram for FMemoryImageAllocatorBase:

Public Member Functions

 FMemoryImageAllocatorBase ()=default
 
void MoveToEmpty (FMemoryImageAllocatorBase &Other)
 
 ~FMemoryImageAllocatorBase ()
 
FORCEINLINE FScriptContainerElementGetAllocation () const
 
FORCEINLINE SIZE_T GetAllocatedSize (int32 NumAllocatedElements, SIZE_T NumBytesPerElement) const
 
FORCEINLINE bool HasAllocation ()
 
FORCEINLINE int64 GetFrozenOffsetFromThis () const
 
void ResizeAllocation (int32 PreviousNumElements, int32 NumElements, SIZE_T NumBytesPerElement, uint32 Alignment)
 
void WriteMemoryImage (FMemoryImageWriter &Writer, const FTypeLayoutDesc &TypeDesc, int32 NumAllocatedElements, uint32 Alignment) const
 
void ToString (const FTypeLayoutDesc &TypeDesc, int32 NumAllocatedElements, int32 MaxAllocatedElements, const FPlatformTypeLayoutParameters &LayoutParams, FMemoryToStringContext &OutContext) const
 
void CopyUnfrozen (const FMemoryUnfreezeContent &Context, const FTypeLayoutDesc &TypeDesc, int32 NumAllocatedElements, void *Dst) const
 

Private Member Functions

 UE_NONCOPYABLE (FMemoryImageAllocatorBase)
 

Private Attributes

TMemoryImagePtr< FScriptContainerElementData
 

Detailed Description

Definition at line 595 of file MemoryImage.h.

Constructor & Destructor Documentation

◆ FMemoryImageAllocatorBase()

FMemoryImageAllocatorBase::FMemoryImageAllocatorBase ( )
default

◆ ~FMemoryImageAllocatorBase()

FMemoryImageAllocatorBase::~FMemoryImageAllocatorBase ( )

Destructor.

Member Function Documentation

◆ CopyUnfrozen()

void FMemoryImageAllocatorBase::CopyUnfrozen ( const FMemoryUnfreezeContent & Context,
const FTypeLayoutDesc & TypeDesc,
int32 NumAllocatedElements,
void * Dst ) const

◆ GetAllocatedSize()

FORCEINLINE SIZE_T FMemoryImageAllocatorBase::GetAllocatedSize ( int32 NumAllocatedElements,
SIZE_T NumBytesPerElement ) const
inline

Definition at line 617 of file MemoryImage.h.

◆ GetAllocation()

FORCEINLINE FScriptContainerElement * FMemoryImageAllocatorBase::GetAllocation ( ) const
inline

Definition at line 612 of file MemoryImage.h.

◆ GetFrozenOffsetFromThis()

FORCEINLINE int64 FMemoryImageAllocatorBase::GetFrozenOffsetFromThis ( ) const
inline

Definition at line 625 of file MemoryImage.h.

◆ HasAllocation()

FORCEINLINE bool FMemoryImageAllocatorBase::HasAllocation ( )
inline

Definition at line 621 of file MemoryImage.h.

◆ MoveToEmpty()

void FMemoryImageAllocatorBase::MoveToEmpty ( FMemoryImageAllocatorBase & Other)

Moves the state of another allocator into this one. Assumes that the allocator is currently empty, i.e. memory may be allocated but any existing elements have already been destructed (if necessary).

Parameters
Other- The allocator to move the state from. This allocator should be left in a valid empty state.

◆ ResizeAllocation()

void FMemoryImageAllocatorBase::ResizeAllocation ( int32 PreviousNumElements,
int32 NumElements,
SIZE_T NumBytesPerElement,
uint32 Alignment )

◆ ToString()

void FMemoryImageAllocatorBase::ToString ( const FTypeLayoutDesc & TypeDesc,
int32 NumAllocatedElements,
int32 MaxAllocatedElements,
const FPlatformTypeLayoutParameters & LayoutParams,
FMemoryToStringContext & OutContext ) const

◆ UE_NONCOPYABLE()

FMemoryImageAllocatorBase::UE_NONCOPYABLE ( FMemoryImageAllocatorBase )
private

◆ WriteMemoryImage()

void FMemoryImageAllocatorBase::WriteMemoryImage ( FMemoryImageWriter & Writer,
const FTypeLayoutDesc & TypeDesc,
int32 NumAllocatedElements,
uint32 Alignment ) const

Member Data Documentation

◆ Data

TMemoryImagePtr<FScriptContainerElement> FMemoryImageAllocatorBase::Data
private

Definition at line 633 of file MemoryImage.h.


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