Navigation
API > API/Runtime > API/Runtime/NNE
This class implements a reference counted view on an immutable memory buffer representing model data.
It allows runtimes to reference results of GetModelData() even if they outlive UNNEModelData.
| Name | FSharedModelData |
| Type | class |
| Header File | /Engine/Source/Runtime/NNE/Public/NNEModelData.h |
| Include Path | #include "NNEModelData.h" |
Syntax
class FSharedModelData
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Constructor to create empty data. | NNEModelData.h | ||
FSharedModelData
(
FSharedBuffer InData, |
Constructor to shared model data. | NNEModelData.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Data | FSharedBuffer | The shared buffer containing the model data. Data must be aligned with MemoryAlignment. | NNEModelData.h | |
| MemoryAlignment | uint32 | The memory alignment with which Data has been aligned. | NNEModelData.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
uint32 GetMemoryAlignment() |
Get the memory alignment with which the data has been aligned. | NNEModelData.h | |
TConstArrayView64< uint8 > GetView() |
Get a const array view on the shared data which is guaranteed to remain valid as long as this objects exists. | NNEModelData.h |