BSON_ITER_OVERWRITE_INT64(3)

hey bestie πŸ’– welcome to the libbson corner of the man pages β€” this one's about bson_iter_overwrite_int64, and honestly it's giving surgical precision ✨


✨ SYNOPSIS ✨

void
bson_iter_overwrite_int64 (bson_iter_t *iter, int64_t value);

🌸 PARAMETERS 🌸

  • iter β€” a bson_iter_t. That's your iterator bestie, the little pointer-person walking through the document πŸšΆβ€β™€οΈ
  • value β€” an int64_t. The number you're gonna slam in there πŸ”₯

πŸ’… DESCRIPTION πŸ’…

Okay so picture this: bson_iter_overwrite_int64() shall overwrite the contents of a BSON_TYPE_INT64 element β€” in place πŸ’« no copies, no drama, no new allocation, just a glow-up right where it stands.

The one catch: you can only do this when the underlying bson document allows mutation. Read-only document? Then nope, not today πŸ™ˆ

fr fr heads up: it is a programming error to call this function when iter is not observing an element of type BSON_TYPE_INT64. Like, the code will just be wrong. Check your type first, bestie, it's not that hard πŸ’€

πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc


2009-present, MongoDB, Inc.


and that's the whole vibe check, bestie πŸ¦‹ this little icon of a page is from libbson 2.5.6, dated Oct 09, 2026 β€” go forth and overwrite responsibly πŸ’œβœ¨πŸŽ€

πŸ“¦ where this page comes from