1BSON_SIZED_NEW(3) libbson BSON_SIZED_NEW(3)
2
3
4
6 bson_sized_new - bson_sized_new()
7
9 bson_t *
10 bson_sized_new (size_t size);
11
13 ยท size: The size to pre-allocate for the underlying buffer.
14
16 The bson_sized_new() function shall create a new bson_t on the heap
17 with a preallocated buffer. This is useful if you have a good idea of
18 the size of the resulting document.
19
21 A newly allocated bson_t that should be freed with bson_destroy().
22
24 MongoDB, Inc
25
27 2017-present, MongoDB, Inc
28
29
30
31
321.16.2 Feb 25, 2020 BSON_SIZED_NEW(3)