![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <SharedStruct.h>
Classes | |
| struct | FStructSharedMemoryDeleter |
Public Member Functions | |
| ~FStructSharedMemory () | |
| FStructSharedMemory (const FStructSharedMemory &Other)=delete | |
| FStructSharedMemory (const FStructSharedMemory &&Other)=delete | |
| FStructSharedMemory & | operator= (const FStructSharedMemory &Other)=delete |
| FStructSharedMemory & | operator= (const FStructSharedMemory &&Other)=delete |
| const uint8 * | GetMemory () const |
| uint8 * | GetMutableMemory () |
| const UScriptStruct & | GetScriptStruct () const |
| TObjectPtr< const UScriptStruct > & | GetScriptStructPtr () |
Static Public Member Functions | |
| static TSharedPtr< FStructSharedMemory > | Create (const UScriptStruct *InScriptStruct, const uint8 *InStructMemory=nullptr) |
| static TSharedPtr< FStructSharedMemory > | Create (const UScriptStruct &InScriptStruct, const uint8 *InStructMemory=nullptr) |
| template<typename T , typename... TArgs> | |
| static TSharedPtr< FStructSharedMemory > | CreateArgs (TArgs &&... InArgs) |
Holds the information and memory about a UStruct. Instances of these are shared using FConstSharedStruct and FSharedStruct.
The size of the allocation for this struct always includes both the size of the struct and also the size required to hold the structure described by the ScriptStruct. This avoids two pointer referencing (cache misses). Look at Create() to understand more.
A 'const FStructSharedMemory' the memory is immutable. We restrict shallow copies of StructMemory where it's not appropriate in the owning types that compose this type:
This type is designed to be used in composition and should not be used outside the types that compose it.
|
inline |
|
delete |
|
delete |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inline |
Returns pointer to aligned struct memory.
|
inline |
Returns mutable pointer to aligned struct memory.
|
inline |
Returns struct type.
|
inline |
|
delete |
|
delete |