UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TMemoryImageAllocator< Alignment >::ForAnyElementType Class Reference

#include <MemoryImage.h>

+ Inheritance diagram for TMemoryImageAllocator< Alignment >::ForAnyElementType:

Public Member Functions

 ForAnyElementType ()=default
 
UE_FORCEINLINE_HINT SizeType GetInitialCapacity () const
 
UE_FORCEINLINE_HINT int32 CalculateSlackReserve (int32 NewMax, int32 NumBytesPerElement) const
 
UE_FORCEINLINE_HINT int32 CalculateSlackReserve (int32 NewMax, int32 NumBytesPerElement, uint32 AlignmentOfElement) const
 
UE_FORCEINLINE_HINT int32 CalculateSlackShrink (int32 NewMax, int32 CurrentMax, int32 NumBytesPerElement) const
 
UE_FORCEINLINE_HINT int32 CalculateSlackShrink (int32 NewMax, int32 CurrentMax, int32 NumBytesPerElement, uint32 AlignmentOfElement) const
 
UE_FORCEINLINE_HINT int32 CalculateSlackGrow (int32 NewMax, int32 CurrentMax, int32 NumBytesPerElement) const
 
UE_FORCEINLINE_HINT int32 CalculateSlackGrow (int32 NewMax, int32 CurrentMax, int32 NumBytesPerElement, uint32 AlignmentOfElement) const
 
UE_FORCEINLINE_HINT void ResizeAllocation (int32 CurrentNum, int32 NewMax, SIZE_T NumBytesPerElement)
 
UE_FORCEINLINE_HINT void ResizeAllocation (int32 CurrentNum, int32 NewMax, SIZE_T NumBytesPerElement, uint32 AlignmentOfElement)
 
UE_FORCEINLINE_HINT void WriteMemoryImage (FMemoryImageWriter &Writer, const FTypeLayoutDesc &TypeDesc, int32 NumAllocatedElements) const
 
- Public Member Functions inherited from FMemoryImageAllocatorBase
 FMemoryImageAllocatorBase ()=default
 
CORE_API void MoveToEmpty (FMemoryImageAllocatorBase &Other)
 
CORE_API ~FMemoryImageAllocatorBase ()
 
UE_FORCEINLINE_HINT FScriptContainerElementGetAllocation () const
 
UE_FORCEINLINE_HINT SIZE_T GetAllocatedSize (int32 CurrentMax, SIZE_T NumBytesPerElement) const
 
UE_FORCEINLINE_HINT bool HasAllocation ()
 
UE_FORCEINLINE_HINT int64 GetFrozenOffsetFromThis () const
 
CORE_API void ResizeAllocation (int32 PreviousNumElements, int32 NumElements, SIZE_T NumBytesPerElement, uint32 Alignment)
 
CORE_API void WriteMemoryImage (FMemoryImageWriter &Writer, const FTypeLayoutDesc &TypeDesc, int32 NumAllocatedElements, uint32 Alignment) const
 
CORE_API void ToString (const FTypeLayoutDesc &TypeDesc, int32 NumAllocatedElements, int32 MaxAllocatedElements, const FPlatformTypeLayoutParameters &LayoutParams, FMemoryToStringContext &OutContext) const
 
CORE_API void CopyUnfrozen (const FMemoryUnfreezeContent &Context, const FTypeLayoutDesc &TypeDesc, int32 NumAllocatedElements, void *Dst) const
 

Constructor & Destructor Documentation

◆ ForAnyElementType()

template<uint32 Alignment = DEFAULT_ALIGNMENT>
TMemoryImageAllocator< Alignment >::ForAnyElementType::ForAnyElementType ( )
default

Default constructor.

Member Function Documentation

◆ CalculateSlackGrow() [1/2]

template<uint32 Alignment = DEFAULT_ALIGNMENT>
UE_FORCEINLINE_HINT int32 TMemoryImageAllocator< Alignment >::ForAnyElementType::CalculateSlackGrow ( int32  NewMax,
int32  CurrentMax,
int32  NumBytesPerElement 
) const
inline

◆ CalculateSlackGrow() [2/2]

template<uint32 Alignment = DEFAULT_ALIGNMENT>
UE_FORCEINLINE_HINT int32 TMemoryImageAllocator< Alignment >::ForAnyElementType::CalculateSlackGrow ( int32  NewMax,
int32  CurrentMax,
int32  NumBytesPerElement,
uint32  AlignmentOfElement 
) const
inline

◆ CalculateSlackReserve() [1/2]

template<uint32 Alignment = DEFAULT_ALIGNMENT>
UE_FORCEINLINE_HINT int32 TMemoryImageAllocator< Alignment >::ForAnyElementType::CalculateSlackReserve ( int32  NewMax,
int32  NumBytesPerElement 
) const
inline

◆ CalculateSlackReserve() [2/2]

template<uint32 Alignment = DEFAULT_ALIGNMENT>
UE_FORCEINLINE_HINT int32 TMemoryImageAllocator< Alignment >::ForAnyElementType::CalculateSlackReserve ( int32  NewMax,
int32  NumBytesPerElement,
uint32  AlignmentOfElement 
) const
inline

◆ CalculateSlackShrink() [1/2]

template<uint32 Alignment = DEFAULT_ALIGNMENT>
UE_FORCEINLINE_HINT int32 TMemoryImageAllocator< Alignment >::ForAnyElementType::CalculateSlackShrink ( int32  NewMax,
int32  CurrentMax,
int32  NumBytesPerElement 
) const
inline

◆ CalculateSlackShrink() [2/2]

template<uint32 Alignment = DEFAULT_ALIGNMENT>
UE_FORCEINLINE_HINT int32 TMemoryImageAllocator< Alignment >::ForAnyElementType::CalculateSlackShrink ( int32  NewMax,
int32  CurrentMax,
int32  NumBytesPerElement,
uint32  AlignmentOfElement 
) const
inline

◆ GetInitialCapacity()

template<uint32 Alignment = DEFAULT_ALIGNMENT>
UE_FORCEINLINE_HINT SizeType TMemoryImageAllocator< Alignment >::ForAnyElementType::GetInitialCapacity ( ) const
inline

◆ ResizeAllocation() [1/2]

template<uint32 Alignment = DEFAULT_ALIGNMENT>
UE_FORCEINLINE_HINT void TMemoryImageAllocator< Alignment >::ForAnyElementType::ResizeAllocation ( int32  CurrentNum,
int32  NewMax,
SIZE_T  NumBytesPerElement 
)
inline

◆ ResizeAllocation() [2/2]

template<uint32 Alignment = DEFAULT_ALIGNMENT>
UE_FORCEINLINE_HINT void TMemoryImageAllocator< Alignment >::ForAnyElementType::ResizeAllocation ( int32  CurrentNum,
int32  NewMax,
SIZE_T  NumBytesPerElement,
uint32  AlignmentOfElement 
)
inline

◆ WriteMemoryImage()

template<uint32 Alignment = DEFAULT_ALIGNMENT>
UE_FORCEINLINE_HINT void TMemoryImageAllocator< Alignment >::ForAnyElementType::WriteMemoryImage ( FMemoryImageWriter Writer,
const FTypeLayoutDesc TypeDesc,
int32  NumAllocatedElements 
) const
inline

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