BSON_APPEND_AR..._VECTOR_FLOAT32(3)
π BSON_APPEND_AR..._VECTOR_FLOAT32(3) π
okay bestie, welcome to the libbson manual page for BSON_APPEND_AR..._VECTOR_FLOAT32(3). yes, the name is doing the absolute most, but the function is literally here to turn a float32 BSON Binary Vector into a plain BSON Array. no cap. β¨
β¨ SYNOPSIS β¨
#define BSON_APPEND_ARRAY_FROM_VECTOR_FLOAT32(b, key, view) \
bson_append_array_from_vector_float32 (b, key, (int) strlen (key), view)
bool
bson_append_array_from_vector_float32 (bson_t *bson,
const char *key,
int key_length,
bson_vector_float32_const_view_t view);
π§Ύ PARAMETERS π§Ύ
bsonβ abson_t. that's the BSON doc you're writing into, bestie. π«Άkeyβ an ASCII C string containing the name of the field. yep, the field name. πkey_lengthβ the length ofkeyin bytes, or-1to determine the length withstrlen(). use-1when you want the function to do thestrlen()moment for you. πviewβ abson_vector_float32_const_view_tpointing to validated float32 BSON Binary Vector subtype data. it's giving already validated, we love that. π¦
πΈ DESCRIPTION πΈ
Converts the Vector pointed to by view into a plain BSON Array, written to bson under the name key. that's it, that's the whole vibe: Vector in, regular BSON Array out, under the field name you picked. π
π« RETURNS π«
Returns true if the operation was applied successfully. the function fails if appending the array grows bson larger than INT32_MAX. so like, successful append = true; too big = nope. π
π SEE ALSO π
bson_array_builder_append_vector_float32_elements()
π«Ά AUTHOR π«Ά
MongoDB, Inc
π COPYRIGHT π
2009-present, MongoDB, Inc.
k bye bestie π β this libbson page is version 2.5.6, dated Oct 09, 20.
π¦ where this page comes from
- epel 10: libbson-devel 2.5.6-1.el10_3 Β· Apache-2.0 AND ISC AND MIT AND Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms