BSON_VECTOR_FLOAT32_VIEW_WRITE(3)

Copy a contiguous block of elements from a C float array into a bson_vector_float32_view_t.

SYNOPSIS

    bool
    bson_vector_float32_view_write (bson_vector_float32_view_t view,
                                    const float *values,
                                    size_t element_count,
                                    size_t vector_offset_elements)

PARAMETERS

•   view: A valid bson_vector_float32_view_t.

•   values: Location where the float elements will be copied from.

•   element_count: Number of elements to write.

•   vector_offset_elements: The vector index of the first element to write.

DESCRIPTION

Elements are copied in bulk from the provided pointer into the view.

RETURNS

If the element_count and vector_offset_elements parameters overflow the bounds of the Vector, returns false without taking any other action. If the parameters are in range, this is guaranteed to succeed. On success, returns true and writes to element_count elements in the Vector starting at vector_offset_elements.

AUTHOR
MongoDB, Inc

COPYRIGHT
2009-present, MongoDB, Inc.