1BSON_COPY(3) libbson BSON_COPY(3)
23
4
SYNOPSIS
6bson_t *
7bson_copy (const bson_t *bson);
8
PARAMETERS
10• bson: A bson_t.
11
DESCRIPTION
13The bson_copy() function shall copy the contents of a bson document
14into a new bson_t.
1516
The resulting bson_t should be freed with bson_destroy().
17
RETURNS
19A newly allocated bson_t that should be freed with bson_destroy().
20
AUTHOR
22MongoDB, Inc
23
COPYRIGHT
252017-present, MongoDB, Inc
2627
28
29
30
1.25.1 Nov 08, 2023 BSON_COPY(3)