Provided by: libbson-doc_1.3.1-1_all bug

NAME

       bson_reinit() - The bson_reinit() function shall be equivalent to calling bson_destroy() and bson_init().

SYNOPSIS

       void
       bson_reinit (bson_t *b);

PARAMETERS

       b      A bson_t \&.

DESCRIPTION

       The bson_reinit(3) function shall be equivalent to calling bson_destroy(3) and bson_init(3) \&.

       However,  if  the bson_t structure contains a malloc()'d buffer, it may be reused. To be certain that any
       buffer is freed, always call bson_destroy on any bson_t structure, whether initialized or  reinitialized,
       after its final use.

COLOPHON

       This page is part of libbson.  Please report any bugs at https://jira.mongodb.org/browse/CDRIVER.

libbson                                            2016‐01‐18                                     BSON_REINIT(3)