table of contents
BSON_ARRAY_BUILDER_APPEND_VECTOR_ELEMENTS(3) | libbson | BSON_ARRAY_BUILDER_APPEND_VECTOR_ELEMENTS(3) |
SYNOPSIS¶
bool bson_array_builder_append_vector_elements (bson_array_builder_t *builder,
const bson_iter_t *iter);
PARAMETERS¶
- builder: A valid bson_array_builder_t.
- iter: A bson_iter_t pointing to any supported BSON Binary Vector subtype field.
DESCRIPTION¶
Converts the Vector pointed to by iter into elements of a plain BSON Array, written to builder. This conversion is polymorphic: A converted element type will be chosen based on the type of the input Vector. For details, see the type-specific versions of this function.
RETURNS¶
Returns true if the operation was applied successfully. The function fails if appending the array grows bson larger than INT32_MAX, or if iter doesn't point to a valid recognized Vector type.
SEE ALSO:
bson_append_array_from_vector() bson_array_builder_append_vector_int8_elements() bson_array_builder_append_vector_float32_elements() bson_array_builder_append_vector_packed_bit_elements()
AUTHOR¶
MongoDB, Inc
COPYRIGHT¶
2009-present, MongoDB, Inc.
October 8, 2025 | 2.1.2 |