1BSON_SIZED_NEW(3)                   libbson                  BSON_SIZED_NEW(3)
2
3
4

SYNOPSIS

6          bson_t *
7          bson_sized_new (size_t size);
8

PARAMETERS

10size: The size to pre-allocate for the underlying buffer.
11

DESCRIPTION

13       The  bson_sized_new()  function  shall  create a new bson_t on the heap
14       with a preallocated buffer. This is useful if you have a good  idea  of
15       the size of the resulting document.
16

RETURNS

18       A newly allocated bson_t that should be freed with bson_destroy().
19

AUTHOR

21       MongoDB, Inc
22
24       2017-present, MongoDB, Inc
25
26
27
28
291.25.1                           Nov 08, 2023                BSON_SIZED_NEW(3)
Impressum