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

NAME

6       bson_append_bool - bson_append_bool()
7

SYNOPSIS

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

PARAMETERS

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

DESCRIPTION

25       The bson_append_bool() function shall append a new element to bson con‐
26       taining the boolean provided.
27

RETURNS

29       Returns true if the operation was applied  successfully.  The  function
30       will fail if appending the value grows bson larger than INT32_MAX.
31

AUTHOR

33       MongoDB, Inc
34
36       2017-present, MongoDB, Inc
37
38
39
40
411.17.6                           Jun 03, 2021              BSON_APPEND_BOOL(3)
Impressum