BSON_ITER_OVERWRITE_DECIMAL128(3)
π BSON_ITER_OVERWRITE_DECIMAL128(3) π
ok so bestie, welcome to the libbson girlies π β this one's all about bson_iter_overwrite_decimal128, and yes it's a mouthful, but it's literally so iconic once you get it.
β¨ SYNOPSIS β¨
bool
bson_iter_overwrite_decimal128 (bson_iter_t *iter, const bson_decimal128_t *value);
πΈ PARAMETERS πΈ
iterβ abson_iter_t. you know her, you love her, she's the iterator doing the observing πvalueβ the new Decimal128 value. the fresh new content, the glow-up in question π
π¦ DESCRIPTION π¦
okay so, bson_iter_overwrite_decimal128() shall overwrite the contents of a BSON_TYPE_DECIMAL128 element in place. in place, bestie β no copy, no moving, just straight-up swapping the contents right where they live. slay.
π«Ά but hear me out: this may only be done when the underlying bson document allows mutation. if it doesn't, that's not a vibe and definitely not allowed.
and then the serious one π β it is a programming error to call this function when iter is not observing an element of type BSON_TYPE_DECIMAL128. like, that's on you, not on libbson. vibe check your types before you call, fr fr π
π AUTHOR π
MongoDB, Inc β icons only, no cap π
π COPYRIGHT π
2009-present, MongoDB, Inc.
and that's the whole page, bestie π β this was libbson 2.5.6, dated Oct 09, 2026, brought to you by MongoDB, Inc. mwah, go forth and overwrite responsibly π
β¨π
π¦ 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