1BSON_APPEND_ITER(3) libbson BSON_APPEND_ITER(3)
2
3
4
6 bool
7 bson_append_iter (bson_t *bson,
8 const char *key,
9 int key_length,
10 const bson_iter_t *iter);
11
13 • bson: A bson_t.
14
15 • key: Optional field name. If NULL, uses bson_iter_key(iter).
16
17 • key_length: The length of key or -1 to use strlen().
18
19 • iter: A bson_iter_t located on the position of the element to append.
20
22 Appends the value at the current position of iter to the document.
23
25 Returns true if successful; false if the operation would overflow the
26 maximum document size or another invalid state is detected.
27
29 MongoDB, Inc
30
32 2017-present, MongoDB, Inc
33
34
35
36
371.25.1 Nov 08, 2023 BSON_APPEND_ITER(3)