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