struct SerializedArrayDelta

Inherits: ISerialized

Contains a delta between two arrays.

Only different array elements are stored in the delta.

Public

Constructors

SerializedArrayDelta

SerializedArrayDelta() = default

Methods

Clone

SPtr<ISerialized> Clone(bool cloneData = true) override

Performs a deep clone of this object any any potential child objects.

cloneData
If true the data contained by the objects will be cloned as well, instead of just meta-data. If false then both the original and the cloned instances will point to the same instances of data. The original will retain data ownership and it will go out of scope when the original does.

CalculateHash

u64 CalculateHash() const override

Calculates the hash value of the contained data.

Equals

bool Equals(const SPtr<ISerialized> &other) const override

Checks if this value matches the other provided value.

staticGetRttiStatic

static RTTIType *GetRttiStatic()

GetRtti

RTTIType *GetRtti() const override

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

~ISerialized

virtual ~ISerialized() noexcept = default

Fields

Entries

UnorderedMap<u32, SerializedArrayEntryDelta> Entries

ElementCount

u32 ElementCount