UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FNativeJSStructSerializerBackend Class Reference

#include <NativeJSStructSerializerBackend.h>

+ Inheritance diagram for FNativeJSStructSerializerBackend:

Public Member Functions

 FNativeJSStructSerializerBackend (FNativeJSScriptingRef InScripting, FMemoryWriter &Writer)
 
virtual void WriteProperty (const FStructSerializerState &State, int32 ArrayIndex=0) override
 
- Public Member Functions inherited from FJsonStructSerializerBackend
 FJsonStructSerializerBackend (FArchive &InArchive)
 
 FJsonStructSerializerBackend (FArchive &InArchive, const EStructSerializerBackendFlags InFlags)
 
virtual SERIALIZATION_API void BeginArray (const FStructSerializerState &State) override
 
virtual SERIALIZATION_API void BeginStructure (const FStructSerializerState &State) override
 
virtual SERIALIZATION_API void EndArray (const FStructSerializerState &State) override
 
virtual SERIALIZATION_API void EndStructure (const FStructSerializerState &State) override
 
virtual SERIALIZATION_API void WriteComment (const FString &Comment) override
 
virtual SERIALIZATION_API bool WritePODArray (const FStructSerializerState &State) override
 
- Public Member Functions inherited from IStructSerializerBackend
virtual ~IStructSerializerBackend ()
 

Additional Inherited Members

- Protected Member Functions inherited from FJsonStructSerializerBackend
TSharedRef< TJsonWriter< UCS2CHAR > > & GetWriter ()
 
template<typename ValueType >
void WritePropertyValue (const FStructSerializerState &State, const ValueType &Value)
 
void WriteNull (const FStructSerializerState &State)
 

Detailed Description

Implements a writer for UStruct serialization using JavaScript.

Based on FJsonStructSerializerBackend, it adds support for certain object types not representable in pure JSON

Constructor & Destructor Documentation

◆ FNativeJSStructSerializerBackend()

FNativeJSStructSerializerBackend::FNativeJSStructSerializerBackend ( FNativeJSScriptingRef  InScripting,
FMemoryWriter Writer 
)

Creates and initializes a new instance.

Parameters
InScriptingAn instance of a web browser scripting obnject.

Member Function Documentation

◆ WriteProperty()

void FNativeJSStructSerializerBackend::WriteProperty ( const FStructSerializerState State,
int32  ArrayIndex = 0 
)
overridevirtual

Writes a property to the output stream.

Depending on the context, properties to be written can be either object properties or array elements.

State.KeyProperty points to the key property that holds the data to write. State.KeyData points to the key property's data. State.ValueProperty points to the property that holds the value to write. State.ValueData points to the actual data to write. State.TypeInfo contains the data's type information State.ArrayIndex is the optional index if the data is a value in an array.

Parameters
StateThe serializer's current state.
See also
BeginArray, BeginStructure, EndArray, EndStructure, WriteComment

Reimplemented from FJsonStructSerializerBackend.


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