Open 3D Engine AzCore API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AZ::NameSerializer Class Reference

Provides flattened serialization of Name objects as a simple string. More...

#include <NameSerializer.h>

Inherits AZ::Serialize::IDataSerializer.

Public Member Functions

size_t DataToText (IO::GenericStream &in, IO::GenericStream &out, bool) override
 Convert binary data to text.
 
size_t TextToData (const char *text, unsigned int, IO::GenericStream &stream, bool) override
 Convert text data to binary, to support loading old version formats. We must respect text version if the text->binary format has changed!
 
size_t Save (const void *classPtr, IO::GenericStream &stream, bool) override
 Store the class data into a stream.
 
bool Load (void *classPtr, IO::GenericStream &stream, unsigned int, bool) override
 Load the class data from a stream.
 
bool CompareValueData (const void *lhs, const void *rhs) override
 
- Public Member Functions inherited from AZ::Serialize::IDataSerializer
virtual size_t Save (const void *classPtr, IO::GenericStream &stream, bool isDataBigEndian=false)=0
 Store the class data into a stream.
 
virtual bool Load (void *classPtr, IO::GenericStream &stream, unsigned int version, bool isDataBigEndian=false)=0
 Load the class data from a stream.
 
virtual size_t DataToText (IO::GenericStream &in, IO::GenericStream &out, bool isDataBigEndian)=0
 Convert binary data to text.
 
virtual size_t TextToData (const char *text, unsigned int textVersion, IO::GenericStream &stream, bool isDataBigEndian=false)=0
 Convert text data to binary, to support loading old version formats. We must respect text version if the text->binary format has changed!
 
virtual bool CompareValueData (const void *lhs, const void *rhs)=0
 
virtual void PostClone (void *)
 Optional post processing of the cloned data to deal with members that are not serialize-reflected.
 

Additional Inherited Members

- Static Public Member Functions inherited from AZ::Serialize::IDataSerializer
static IDataSerializerDeleter CreateDefaultDeleteDeleter ()
 
static IDataSerializerDeleter CreateNoDeleteDeleter ()
 

Detailed Description

Provides flattened serialization of Name objects as a simple string.

Member Function Documentation

◆ CompareValueData()

bool AZ::NameSerializer::CompareValueData ( const void *  lhs,
const void *  rhs 
)
overridevirtual

Compares two instances of the type. Input pointers are assumed to point to valid instances of the class.

Returns
true if they match.

Implements AZ::Serialize::IDataSerializer.

◆ DataToText()

size_t AZ::NameSerializer::DataToText ( IO::GenericStream in,
IO::GenericStream out,
bool   
)
overridevirtual

Convert binary data to text.

Implements AZ::Serialize::IDataSerializer.

◆ Load()

bool AZ::NameSerializer::Load ( void *  classPtr,
IO::GenericStream stream,
unsigned int  ,
bool   
)
overridevirtual

Load the class data from a stream.

Implements AZ::Serialize::IDataSerializer.

◆ Save()

size_t AZ::NameSerializer::Save ( const void *  classPtr,
IO::GenericStream stream,
bool   
)
overridevirtual

Store the class data into a stream.

Implements AZ::Serialize::IDataSerializer.

◆ TextToData()

size_t AZ::NameSerializer::TextToData ( const char *  text,
unsigned int  ,
IO::GenericStream stream,
bool   
)
overridevirtual

Convert text data to binary, to support loading old version formats. We must respect text version if the text->binary format has changed!

Implements AZ::Serialize::IDataSerializer.


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