1BSON_NEW_FROM_DATA(3) libbson BSON_NEW_FROM_DATA(3)
2
3
4
6 bson_new_from_data - bson_new_from_data()
7
9 bson_t *
10 bson_new_from_data (const uint8_t *data, size_t length);
11
13 • data: A BSON encoded document buffer.
14
15 • length: The length of data in bytes.
16
18 The bson_new_from_data() function shall create a new bson_t on the heap
19 and copy the contents of data. This may be helpful when working with
20 language bindings but is generally expected to be slower.
21
23 A newly allocated bson_t if successful, otherwise NULL.
24
26 MongoDB, Inc
27
29 2017-present, MongoDB, Inc
30
31
32
33
341.24.3 Aug 17, 2023 BSON_NEW_FROM_DATA(3)