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

NAME

6       bson_sized_new - bson_sized_new()
7

SYNOPSIS

9          bson_t *
10          bson_sized_new (size_t size);
11

PARAMETERS

13size: The size to pre-allocate for the underlying buffer.
14

DESCRIPTION

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

RETURNS

21       A newly allocated bson_t that should be freed with bson_destroy().
22

AUTHOR

24       MongoDB, Inc
25
27       2017-present, MongoDB, Inc
28
29
30
31
321.20.0                           Nov 18, 2021                BSON_SIZED_NEW(3)
Impressum