Ark Server API (ASA) - Wiki
|
#include <MemoryImage.h>
Public Member Functions | |
FMemoryImageAllocatorBase ()=default | |
void | MoveToEmpty (FMemoryImageAllocatorBase &Other) |
~FMemoryImageAllocatorBase () | |
FORCEINLINE FScriptContainerElement * | GetAllocation () 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< FScriptContainerElement > | Data |
Definition at line 595 of file MemoryImage.h.
|
default |
FMemoryImageAllocatorBase::~FMemoryImageAllocatorBase | ( | ) |
Destructor.
void FMemoryImageAllocatorBase::CopyUnfrozen | ( | const FMemoryUnfreezeContent & | Context, |
const FTypeLayoutDesc & | TypeDesc, | ||
int32 | NumAllocatedElements, | ||
void * | Dst ) const |
|
inline |
Definition at line 617 of file MemoryImage.h.
|
inline |
Definition at line 612 of file MemoryImage.h.
|
inline |
Definition at line 625 of file MemoryImage.h.
|
inline |
Definition at line 621 of file MemoryImage.h.
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).
Other | - The allocator to move the state from. This allocator should be left in a valid empty state. |
void FMemoryImageAllocatorBase::ResizeAllocation | ( | int32 | PreviousNumElements, |
int32 | NumElements, | ||
SIZE_T | NumBytesPerElement, | ||
uint32 | Alignment ) |
void FMemoryImageAllocatorBase::ToString | ( | const FTypeLayoutDesc & | TypeDesc, |
int32 | NumAllocatedElements, | ||
int32 | MaxAllocatedElements, | ||
const FPlatformTypeLayoutParameters & | LayoutParams, | ||
FMemoryToStringContext & | OutContext ) const |
|
private |
void FMemoryImageAllocatorBase::WriteMemoryImage | ( | FMemoryImageWriter & | Writer, |
const FTypeLayoutDesc & | TypeDesc, | ||
int32 | NumAllocatedElements, | ||
uint32 | Alignment ) const |
|
private |
Definition at line 633 of file MemoryImage.h.