UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
UE::NNE::FSharedModelData Class Reference

#include <NNEModelData.h>

Public Member Functions

NNE_API FSharedModelData (FSharedBuffer InData, uint32 InMemoryAlignment)
 
NNE_API FSharedModelData ()
 
NNE_API TConstArrayView64< uint8GetView () const
 
NNE_API uint32 GetMemoryAlignment () const
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ FSharedModelData() [1/2]

UE::NNE::FSharedModelData::FSharedModelData ( FSharedBuffer  InData,
uint32  InMemoryAlignment 
)

Constructor to shared model data.

Parameters
InDataThe shared buffer containing the model data. InData must be owned and the memory aligned with InMemoryAlignment.
InMemoryAlignmentThe memory alignment with which InData has been aligned. A value <= 1 indicates arbitrary memory alignment.

◆ FSharedModelData() [2/2]

UE::NNE::FSharedModelData::FSharedModelData ( )

Constructor to create empty data.

Member Function Documentation

◆ GetMemoryAlignment()

uint32 UE::NNE::FSharedModelData::GetMemoryAlignment ( ) const

Get the memory alignment with which the data has been aligned.

Returns
Memory alignment with which the data has been aligned. A value <= 1 indicates arbitrary memory alignment.

◆ GetView()

TConstArrayView64< uint8 > UE::NNE::FSharedModelData::GetView ( ) const

Get a const array view on the shared data which is guaranteed to remain valid as long as this objects exists.

Returns
A const array view of the shared data.

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