BSON_ARRAY_BUI..._INT8_ELEMENTS(3)
π BSON_ARRAY_BUI..._INT8_ELEMENTS(3) π
Okay bestie, welcome to the libbson corner of the group chat. This page is about shoving a whole int8 vector into a plain BSON array, and it is lowkey iconic. No cap, every detail is staying. π«Ά
β¨ SYNOPSIS β¨
bool
bson_array_builder_append_vector_int8_elements (bson_array_builder_t *builder,
bson_vector_int8_const_view_t view);
π§Έ PARAMETERS π§Έ
builderβ a validbson_array_builder_t. Like, it has to be valid valid. πviewβ abson_vector_int8_const_view_tpointing to validatedint8BSON Binary Vector subtype data. Not just vibes β validated data. π
πΈ DESCRIPTION πΈ
This function converts the Vector pointed to by view into elements of a plain BSON Array, written to builder. The way that every element gets losslessly extended from int8_t to int32_t? Obsessed. β¨
No funny business, no lossy little gremlin behavior β losslessly extended, periodt. π
π RETURNS π
It returns true if the operation was applied successfully. π
The function fails if appending the array grows bson larger than INT32_MAX.
π¨ Bestie, that's the limit. If the array append pushesbsonpastINT32_MAX, it's a fail, not a slay. π
π SEE ALSO π
bson_append_array_from_vector()bson_array_builder_append_vector_elements()
π AUTHOR π
MongoDB, Inc
π COPYRIGHT π
2009-present, MongoDB, Inc.
β¨ Cute sign-off: this page is serving libbson 2.5.6, dated Oct 09, 202 β yes, the footer text goes a little feral right after that, but we preserved the lore. Stay slay, bestie. π
π¦π
π¦ 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