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::Dom::DeltaPatchGenerationParameters Struct Reference

Parameters for GenerateHierarchicalDeltaPatch. More...

#include <DomComparison.h>

Public Attributes

size_t m_replaceThreshold = 3
 
bool m_generateDenormalizedPaths = false
 
bool m_allowRootReplacement = true
 this specifies whether to allow generation of a delta replacement patch that replaces the entire tree, from the root on down
 

Static Public Attributes

static constexpr size_t NoReplace = AZStd::numeric_limits<size_t>::max()
 
static constexpr size_t AlwaysFullReplace = 0
 

Detailed Description

Parameters for GenerateHierarchicalDeltaPatch.

Member Data Documentation

◆ m_generateDenormalizedPaths

bool AZ::Dom::DeltaPatchGenerationParameters::m_generateDenormalizedPaths = false

If set, the patches generated will avoid using "EndOfPath" entries in favor of explicitly specifying indices. This will generate non-conformant JSON patches, but can be useful if there's downstream book-keeping for the patch paths themselves. This is used by e.g. DocumentPropertyEditor so that systems can handle patches without introspecting the previous DOM to generate indices.

◆ m_replaceThreshold

size_t AZ::Dom::DeltaPatchGenerationParameters::m_replaceThreshold = 3

The threshold of changed values in a node or array which, if exceeded, will cause the generation to create an entire "replace" oepration instead. If set to NoReplace, no replacement will occur.


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