File: ubjson_options.md

package info (click to toggle)
jsoncons 1.3.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 17,584 kB
  • sloc: cpp: 136,382; sh: 33; makefile: 5
file content (31 lines) | stat: -rw-r--r-- 774 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
### jsoncons::ubjson::ubjson_options

```cpp
#include <jsoncons_ext/ubjson/ubjson_options.hpp>

class ubjson_options;
```

<br>

![ubjson_options](./diagrams/ubjson_options.png)

Specifies options for reading and writing CBOR.

#### Constructors

    ubjson_options()
Constructs a `ubjson_options` with default values. 

#### Modifiers

    void max_items(std::size_t value)    
While parsing, the maximum number of items allowed in a UBJSON object or array. 
Default is 16,777,216.     

    void max_nesting_depth(int value)
The maximum nesting depth allowed when decoding and encoding UBJSON. 
Default is 1024. Parsing can have an arbitrarily large depth
limited only by available memory. Serializing a [basic_json](../basic_json.md) to
UBJSON is limited by stack size.