1BSON_APPEND_BOOL(3)                 libbson                BSON_APPEND_BOOL(3)
2
3
4

SYNOPSIS

6          #define BSON_APPEND_BOOL(b, key, val) \
7             bson_append_bool (b, key, (int) strlen (key), val)
8
9          bool
10          bson_append_bool (bson_t *bson, const char *key, int key_length, bool value);
11

PARAMETERS

13bson: A bson_t.
14
15key: The name of the field.
16
17key_length: The length of key or -1 to use strlen().
18
19value: true or false.
20

DESCRIPTION

22       The bson_append_bool() function shall append a new element to bson con‐
23       taining the boolean provided.
24

RETURNS

26       Returns true if the operation was applied  successfully.  The  function
27       will fail if appending the value grows bson larger than INT32_MAX.
28

AUTHOR

30       MongoDB, Inc
31
33       2017-present, MongoDB, Inc
34
35
36
37
381.25.1                           Nov 08, 2023              BSON_APPEND_BOOL(3)
Impressum