1BSON_REINIT(3)                      Libbson                     BSON_REINIT(3)
2
3
4

NAME

6       bson_reinit - bson_reinit()
7

SYNOPSIS

9          void
10          bson_reinit (bson_t *b);
11

PARAMETERS

13       · b: A bson_t.
14

DESCRIPTION

16       The   bson_reinit()   function   shall   be   equivalent   to   calling
17       bson_destroy() and bson_init().
18
19       However, if the bson_t structure contains a malloc()'d buffer,  it  may
20       be  reused.  To  be  certain  that  any  buffer  is  freed, always call
21       bson_destroy on any bson_t structure, whether initialized or reinitial‐
22       ized, after its final use.
23

AUTHOR

25       MongoDB, Inc
26
28       2017-present, MongoDB, Inc
29
30
31
32
331.14.0                           Feb 22, 2019                   BSON_REINIT(3)
Impressum