BSON_ARRAY_BUI..._INT8_ELEMENTS(3)

πŸ“¦
version 2.5.6 Β· 3 versions
, in epel 10

πŸ’… 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 valid bson_array_builder_t. Like, it has to be valid valid. πŸ’…
  • view β€” a bson_vector_int8_const_view_t pointing to validated int8 BSON 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 pushes bson past INT32_MAX, it's a fail, not a slay. πŸ’€

πŸ‘€ SEE ALSO πŸ‘€

  • bson_append_array_from_vector()
  • bson_array_builder_append_vector_elements()

πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc

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