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

NAME

6       bson_json_opts_new - bson_json_opts_new()
7

SYNOPSIS

9          bson_json_opts_t *
10          bson_json_opts_new (bson_json_mode_t mode, int32_t max_len);
11

PARAMETERS

13mode: A bson_json_mode_t.
14
15max_len: An int32_t.
16

DESCRIPTION

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

RETURNS

28       A newly allocated bson_json_opts_t.
29

AUTHOR

31       MongoDB, Inc
32
34       2017-present, MongoDB, Inc
35
36
37
38
391.23.1                           Oct 20, 2022            BSON_JSON_OPTS_NEW(3)
Impressum