BSON_APPEND_ARRAY_END(3)

πŸ’– BSON_APPEND_ARRAY_END(3) πŸ’–

okay bestie, this is a libbson manpage and it's literally the glow-up for finishing an array append. no cap, it's short but iconic. πŸŽ€


✨ SYNOPSIS ✨

          bool
          bson_append_array_end (bson_t *bson, bson_t *child);

πŸŽ€ PARAMETERS πŸŽ€

  • bson β€” A bson_t. the main character struct, periodt.
  • child β€” The bson_t initialized in a call to bson_append_array_begin(). iykyk, it's the child from the begin call.

πŸ’… DESCRIPTION πŸ’…

okay so the bson_append_array_end() function shall complete the appending of an array field started with bson_append_array_begin(). that's the whole vibe: begin the array append, then end the array append. slay. ✨

and bestie, listen: child is invalid after calling this function. not "maybe invalid", not "invalid-ish" β€” invalid. do not touch it after. it's giving used-up energy. πŸ’€

⚠️ child is invalid after calling this function. like, fr fr, don't reuse it after this call.

🌈 RETURNS 🌈

Returns true if successful. that's it. simple, clean, no cap. πŸ’–

🌟 SEE ALSO 🌟

  • bson_array_builder_t β€” the related icon, go check it out. πŸ¦‹

πŸ¦‹ AUTHOR πŸ¦‹

MongoDB, Inc wrote this. iconic behavior. πŸ‘‘


2009-present, MongoDB, Inc. β€” all the legal cuteness, preserved exactly. 🫢


xoxo, libbson 2.5.6 Β· Oct 09, 2026 πŸ’–

πŸ“¦ where this page comes from