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 β€” a bson_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 πŸ’œ


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