class ManagedSerializableFieldDataObject

Contains complex object field data.

@copydoc ManagedSerializableFieldData

Public

Methods

GetValue

void *GetValue(const SPtr<ManagedTypeInfo> &typeInfo) override

Returns the internal value.

typeInfo
Type of the data we're looking to retrieve. This isn't required for actually retrieving the data but is used as an extra check to ensure the field contains the data type we're looking for.

Returns: Pointer to the internal serialized data. Caller must ensure the pointer is cast to the proper type.

GetValueBoxed

MonoObject *GetValueBoxed(const SPtr<ManagedTypeInfo> &typeInfo) override

Boxes the internal value and returns it.

typeInfo
Type of the data we're looking to retrieve. This isn't required for actually retrieving the data but is used as an extra check to ensure the field contains the data type we're looking for.

Returns: Boxed representation of the internal value.

Equals

bool Equals(const SPtr<ManagedSerializableFieldData> &other, RTTIOperationContext *context = nullptr) override

Checks if the internal value stored in this object matches the value stored in another.

Does shallow comparison for complex objects.

GetHash

size_t GetHash() override

Returns a hash value for the internally stored value.

Serialize

void Serialize() override

Serializes the internal value so that it may be stored and deserialized later.

Deserialize

void Deserialize() override

Deserializes the internal value so that the managed instance can be retrieved.

staticGetRttiStatic

static RTTIType *GetRttiStatic()

GetRtti

RTTIType *GetRtti() const override

Returns an interface you can use to access class' Run Time Type Information.

Fields

Value