|
pjson 2.0.0
A small, owning JSON value for C++11
|
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. | |
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.
| size_t ByteDance::pjson::PatchOptions::maxClonedBytes |
| size_t ByteDance::pjson::PatchOptions::maxClonedNodes |
| size_t ByteDance::pjson::PatchOptions::maxOperations |
| size_t ByteDance::pjson::PatchOptions::maxWork |