FStructSharedMemory

Holds the information and memory about a [UStruct](API\Runtime\CoreUObject\UObject\UStruct) and that is the actual part that is shared across all the FConstSharedStruct/FSharedStruct

Choose your operating system:

Windows

macOS

Linux

References

Module

StructUtils

Header

/Engine/Plugins/Experimental/StructUtils/Source/StructUtils/Public/SharedStruct.h

Include

#include "SharedStruct.h"

Syntax

struct FStructSharedMemory

Remarks

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.

Constructors

No constructors are accessible with public or protected access.

Destructors

Name Description

Public function

~FStructSharedMemory()

Functions

Name Description

Public function Static

TSharedPtr< ...

 

Create

(
    const UScriptStruct& InScriptStruc...,
    const uint8* InStructMemory
)

Public function Const

uint8 *

 

GetMemory()

Returns pointer to struct memory.

Public function Const

const UScrip...

 

GetScriptStruct()

Returns struct type.