Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Plugins/Experimental/StructUtils/Source/StructUtils/Public/SharedStruct.h |
Include |
#include "SharedStruct.h" |
struct FStructSharedMemory
Holds the information and memory about a UStruct and that is the actual part that is shared across all the FConstSharedStruct/FSharedStruct
The size of the allocation for this structure should always includes not only the need size for it members but also the size required to hold the structure describe by SciprtStruct. This is how we can avoid 2 pointer referencing(cache misses). Look at the Create() method to understand more.
No constructors are accessible with public or protected access.
Name | Description | |
---|---|---|
|
~FStructSharedMemory() |
Name | Description | ||
---|---|---|---|
|
TSharedPtr< ... |
Create ( |
|
|
uint8 * |
GetMemory() |
Returns pointer to struct memory. |
|
const UScrip... |
GetScriptStruct() |
Returns struct type. |