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

Bounds transactional patch 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. More...

#include <pjson.h>

Public Member Functions

 PatchOptions ()
 Public API member PatchOptions; see the API overview for its contract.
 

Public Attributes

size_t maxOperations
 default/hard ceiling: 10,000
 
size_t maxClonedNodes
 default/hard ceiling: 1,000,000
 
size_t maxClonedBytes
 default/hard ceiling: 64 MiB
 
size_t maxWork
 default/hard ceiling: 1,000,000
 

Detailed Description

Bounds transactional patch 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.

Bounds JSON Patch and Merge Patch transactional amplification.

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 222 of file pjson.h.

Constructor & Destructor Documentation

◆ PatchOptions()

ByteDance::pjson::PatchOptions::PatchOptions ( )

Public API member PatchOptions; see the API overview for its contract.

Member Data Documentation

◆ maxClonedBytes

size_t ByteDance::pjson::PatchOptions::maxClonedBytes

default/hard ceiling: 64 MiB

Definition at line 225 of file pjson.h.

◆ maxClonedNodes

size_t ByteDance::pjson::PatchOptions::maxClonedNodes

default/hard ceiling: 1,000,000

Definition at line 224 of file pjson.h.

◆ maxOperations

size_t ByteDance::pjson::PatchOptions::maxOperations

default/hard ceiling: 10,000

Definition at line 223 of file pjson.h.

◆ maxWork

size_t ByteDance::pjson::PatchOptions::maxWork

default/hard ceiling: 1,000,000

Definition at line 226 of file pjson.h.


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