pjson 2.0.0
A small, owning JSON value for C++11
Loading...
Searching...
No Matches
ByteDance::pjson::PatchOptions Struct Reference

Bounds transactional patch amplification. More...

#include <pjson.h>

Public Attributes

size_t maxOperations
 Operation ceiling; zero selects the hard 10,000 limit.
 
size_t maxClonedNodes
 Clone-node ceiling; zero selects the hard 1,000,000 limit.
 
size_t maxClonedBytes
 Clone-byte ceiling; zero selects the hard 64 MiB limit.
 
size_t maxWork
 Work ceiling; zero selects the hard 1,000,000 limit. Selects the documented finite default limits.
 

Detailed Description

Bounds transactional patch amplification.

Bounds JSON Patch and Merge Patch transactional amplification.

Zero selects the documented built-in ceiling rather than disabling a safety limit. Clone bytes include node storage plus string and object-key payload bytes.

Defaults allow 10,000 operations, 1,000,000 cloned nodes, 64 MiB of cloned node/string/key bytes, and 1,000,000 work units. A zero field retains its built-in hard ceiling rather than disabling the limit. A limit failure is reported as PatchError::ResourceLimit and leaves the target unchanged.

Definition at line 198 of file pjson.h.

Member Data Documentation

◆ maxClonedBytes

size_t ByteDance::pjson::PatchOptions::maxClonedBytes

Clone-byte ceiling; zero selects the hard 64 MiB limit.

Definition at line 201 of file pjson.h.

◆ maxClonedNodes

size_t ByteDance::pjson::PatchOptions::maxClonedNodes

Clone-node ceiling; zero selects the hard 1,000,000 limit.

Definition at line 200 of file pjson.h.

◆ maxOperations

size_t ByteDance::pjson::PatchOptions::maxOperations

Operation ceiling; zero selects the hard 10,000 limit.

Definition at line 199 of file pjson.h.

◆ maxWork

size_t ByteDance::pjson::PatchOptions::maxWork

Work ceiling; zero selects the hard 1,000,000 limit. Selects the documented finite default limits.

Definition at line 202 of file pjson.h.


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