1BSON_JSON_OPTS_NEW(3)               libbson              BSON_JSON_OPTS_NEW(3)
2
3
4

SYNOPSIS

6          bson_json_opts_t *
7          bson_json_opts_new (bson_json_mode_t mode, int32_t max_len);
8

PARAMETERS

10mode: A bson_json_mode_t.
11
12max_len: An int32_t.
13

DESCRIPTION

15       The  bson_json_opts_new()  function shall create a new bson_json_opts_t
16       using  the  mode  and  length  supplied.   The   mode   member   is   a
17       bson_json_mode_t defining the encoding mode.
18
19       The  max_len  member  holds  a  maximum  length  for the resulting JSON
20       string. Encoding will stop once the serialised string has reached  this
21       length. To encode the full BSON document, BSON_MAX_LEN_UNLIMITED can be
22       used.
23

RETURNS

25       A newly allocated bson_json_opts_t.
26

AUTHOR

28       MongoDB, Inc
29
31       2017-present, MongoDB, Inc
32
33
34
35
361.25.1                           Nov 08, 2023            BSON_JSON_OPTS_NEW(3)
Impressum