BSON_APPEND_ARRAY_BEGIN(3)
π BSON_APPEND_ARRAY_BEGIN(3) π
okay bestie, this is the libbson page for BSON_APPEND_ARRAY_BEGIN(3) β yes, the manual name is libbson, sheβs iconic, and this one comes with a big deprecation warning. π¨
π¨ WARNING π¨
Deprecated since version2.3.0: usebson_append_array_builder_beginto safely generate array keys ("0","1","2",...) orbson_append_array_unsafe_begin()to manually provide keys.
like, for real, do not start new code with this one, periodt. π
β¨ SYNOPSIS β¨
#define BSON_APPEND_ARRAY_BEGIN(b, key, child) \
bson_append_array_begin (b, key, (int) strlen (key), child)
bool
bson_append_array_begin (bson_t *bson,
const char *key,
int key_length,
bson_t *child);
π¦ DESCRIPTION π¦
okay so real talk: this function is a deprecated alias of bson_append_array_unsafe_begin(). thatβs the whole vibe. no cap. π
Consider using bson_array_builder_t to append an array without needing to generate array element keys. thatβs the glow-up path, bestie β¨
π SEE ALSO π
bson_array_builder_tbson_append_array_unsafe_begin()
π AUTHOR π
MongoDB, Inc
π COPYRIGHT π
2009-present, MongoDB, Inc.
mwah π this page is from libbson version 2.5.6, dated Oct 09, 2026 β stay hydrated and go use the non-deprecated one, 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