BSON_APPEND_DOCUMENT_END(3)
π BSON_APPEND_DOCUMENT_END(3) π
okay so bestie, welcome to BSON_APPEND_DOCUMENT_END(3) β it's a libbson page, section 3, and it's literally the "and that's a wrap" moment for building a BSON document by hand π
β¨ SYNOPSIS β¨
bool
bson_append_document_end (bson_t *bson, bson_t *child);
Like, that's the whole vibe. Two args, one bool out. Slay.
π«Ά PARAMETERS π«Ά
bsonβ abson_t. Justβ¦ abson_t. The parent one. The main character πchildβ the childbson_t, and the important part is that you initialized it in a call tobson_append_document_begin(). No begin, no end, iykyk π
πΈ DESCRIPTION πΈ
So here's the tea: bson_append_document_end() shall complete the appending of a document that you started with bson_append_document_begin(). Start it with begin, finish it with end. It's giving matched set. It's giving bookends π¦
and like, real talk β child is invalid after you call this function. Not "kinda stale", not "maybe still fine", invalid. Don't touch it, don't read it, don't be weird about it π Consider it retired, off to live on a farm.
β RETURNS β
Returns true if successful. That's it, that's the return value. π
π AUTHOR π
MongoDB, Inc β the icons who brought you this whole situation.
π COPYRIGHT π
2009-present, MongoDB, Inc.
okay bye bestie, go finish that document properly, mwah π«Άβ¨
this has been libbson 2.5.6, dated Oct 09, 2026, page BSON_APPEND_DOCUMENT_END(3) β periodt π
π¦ 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