Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 774 Bytes

ubjson_options.md

File metadata and controls

31 lines (20 loc) · 774 Bytes

jsoncons::ubjson::ubjson_options

#include <jsoncons_ext/ubjson/ubjson_options.hpp>

class ubjson_options;

ubjson_options

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 to UBJSON is limited by stack size.