1BSON_APPEND_DOUBLE(3) libbson BSON_APPEND_DOUBLE(3)
2
3
4
6 bson_append_double - bson_append_double()
7
9 #define BSON_APPEND_DOUBLE(b, key, val) \
10 bson_append_double (b, key, (int) strlen (key), val)
11
12 bool
13 bson_append_double (bson_t *bson,
14 const char *key,
15 int key_length,
16 double value);
17
19 • bson: A bson_t.
20
21 • key: An ASCII C string containing the name of the field.
22
23 • key_length: The length of key in bytes, or -1 to determine the length
24 with strlen().
25
26 • value: A double value to append.
27
29 The bson_append_double() function shall append a new element to a bson
30 document of type double.
31
33 Returns true if the operation was applied successfully. The function
34 will fail if appending value grows bson larger than INT32_MAX.
35
37 MongoDB, Inc
38
40 2017-present, MongoDB, Inc
41
42
43
44
451.24.3 Aug 17, 2023 BSON_APPEND_DOUBLE(3)