Provided by: libbson-doc_2.2.1-1_all 

SYNOPSIS
#include <bson/bson.h>
typedef struct bson_vector_float32_const_view_t {
/*< private >*/
} bson_vector_float32_const_view_t;
DESCRIPTION
bson_vector_float32_const_view_t <> is a structure that acts as an opaque const reference to a block of
memory that has been validated as a float32 vector.
It is meant to be passed by value and can be discarded at any time. The contents of the structure should
be considered private.
The bson_t <> MUST be valid for the lifetime of the view and it is an error to modify the bson_t <> while
using the view.
EXAMPLE
bson_iter_t iter;
bson_vector_float32_const_view_t view;
if (bson_iter_init_find (&iter, &doc, "vector") && bson_vector_float32_const_view_from_iter (&view, &iter)) {
size_t length = bson_vector_float32_const_view_length (view);
printf ("Elements in 'vector':\n");
for (size_t i = 0; i < length; i++) {
float element;
BSON_ASSERT (bson_vector_float32_const_view_read (view, &element, 1, i));
printf (" [%d] = %f\n", (int) i, element);
}
}
See also:
bson_vector_float32_view_t <>
Author
MongoDB, Inc
Copyright
2009-present, MongoDB, Inc.
2.2.1 Dec 11, 2025 BSON_VECTOR_FLOAT32_CONST_VIEW_T(3)