|
pjson 1.0.0
A small, owning JSON value for C++11
|
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 | |
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.
| ByteDance::pjson::PatchOptions::PatchOptions | ( | ) |
Public API member PatchOptions; see the API overview for its contract.
| size_t ByteDance::pjson::PatchOptions::maxClonedBytes |
| size_t ByteDance::pjson::PatchOptions::maxClonedNodes |
| size_t ByteDance::pjson::PatchOptions::maxOperations |
| size_t ByteDance::pjson::PatchOptions::maxWork |