bson_value_copy (3) - Linux Manuals
bson_value_copy: This function will copy the boxed content in src into dst. dst must be freed with bson_value_destroy() when no longer in use.
Command to display bson_value_copy
manual in Linux: $ man 3 bson_value_copy
NAME
bson_value_copy() - This function will copy the boxed content in src into dst. dst must be freed with bson_value_destroy() when no longer in use.
SYNOPSIS
void
bson_value_copy (const bson_value_t *src,
bson_value_t *dst);
PARAMETERS
- src
-
A
bson_value_t
to copy from.
- dst
-
A
bson_value_t
to copy into.
DESCRIPTION
This function will copy the boxed content in
src
into
dst
\&.
dst
must be freed with
bson_value_destroy(3)
when no longer in use.
COLOPHON
This page is part of libbson.
Please report any bugs at
https://jira.mongodb.org/browse/CDRIVER.
Pages related to bson_value_copy
- bson_value_destroy (3) - Releases any resources associated with value.
- bson_value_t (3) - BSON Boxed Container Type
- bson_validate (3) - Validates a BSON document by walking through the document and inspecting the fields for valid content.
- bson_visitor_t (3) - The bson_visitor_t structure provides a series of callbacks that can be called while iterating a BSON document. This may simplify the conversion of a bson_t to a higher level language structure.
- bson_vsnprintf (3) - Like bson_snprintf() but allows for variadic parameters.
- bson_append_array (3) - The bson_append_array() function shall append child to bson using the specified key. The type of the field will be an array, but it is the responsibility of the caller to ensure that the keys of child are properly formatted with string keys such as "0", "1", "2" and so forth.
- bson_append_array_begin (3) - The bson_append_array_begin() function shall begin appending an array field to bson. This allows for incrementally building a sub-array. Doing so will generally yield better performance as you will serialize to a single buffer. When done building the sub-array, the caller MUST call bson_append_array_end().
- bson_append_array_end (3) - The bson_append_array_end() function shall complete the appending of an array field started with bson_append_array_begin(). child is invalid after calling this function.
- bson_append_binary (3) - The bson_append_binary() function shall append a new element to bson containing the binary data provided.