bson_vector_float32_view_init - Man Page

Initialize a bson_vector_float32_view_t <> from a mutable uint8_t buffer.

Synopsis

bool
bson_vector_float32_view_init (bson_vector_float32_view_t *view_out,
                               uint8_t *binary_data,
                               uint32_t binary_data_len);

Parameters

Description

The length and header of the provided binary data block will be checked for a valid Vector of float32 element type. On success, the pointer and length are packaged as a bson_vector_float32_view_t <> written to *view_out. The view will only be valid as long as binary_data is valid.

Returns

Returns true if the view was successfully initialized.

See also:

bson_vector_float32_const_view_init() <>

Author

MongoDB, Inc

Info

Mar 04, 2026 2.2.3 libbson