BSON_ARRAY_BUI...D_BIT_ELEMENTS(3)
okay so this is BSON_ARRAY_BUI...D_BIT_ELEMENTS(3) from the libbson manual, and it's literally here to make packed-bit vector data slide into a plain BSON Array. no cap, it's giving useful π
β¨ SYNOPSIS β¨
bool
bson_array_builder_append_vector_packed_bit_elements (bson_array_builder_t *builder,
bson_vector_packed_bit_const_view_t view);
π PARAMETERS π
builder: a validbson_array_builder_t. bestie, it has to be valid, okay?view: abson_vector_packed_bit_const_view_tpointing to validated packed_bit BSON Binary Vector subtype data. yes, every one of those words matters π
πΈ DESCRIPTION πΈ
This function converts the Vector pointed to by view into elements of a plain BSON Array, and writes them to builder. every single element will be 0 or 1, written as a BSON_TYPE_INT32. like, that's the whole assignment, and it ate.
π¦ RETURNS π¦
It returns true if the operation was applied successfully. the function fails if appending the array grows bson larger than INT32_MAX. watch that size, bestie π
π SEE ALSO π
bson_append_array_from_vector()bson_array_builder_append_vector_elements()
π AUTHOR π
MongoDB, Inc
π COPYRIGHT π
2009-present, MongoDB, Inc.
xoxo, your Unix bestie π
β¨ β this cutie is from libbson version 2.5.6, with the footer date chunk showing Oct 09, 202 before the title crashed into it, iconic π
π¦ 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