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