1BSON_REINIT(3) libbson BSON_REINIT(3)
23
4
SYNOPSIS
6void
7bson_reinit (bson_t *b);
8
PARAMETERS
10• b: A bson_t.
11
DESCRIPTION
13Reinitializes a bson_t.
1415
If the bson_t structure contains a malloc()'d buffer, it may be reused.
16To be certain that any buffer is freed, always call bson_destroy() on
17any bson_t structure, whether initialized or reinitialized, after its
18final use.
19
AUTHOR
21MongoDB, Inc
22
COPYRIGHT
242017-present, MongoDB, Inc
2526
27
28
29
1.25.1 Nov 08, 2023 BSON_REINIT(3)