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β abson_iter_t. That's your iterator bestie, the little pointer-person walking through the document πΆββοΈvalueβ anint64_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 wheniteris not observing an element of typeBSON_TYPE_INT64. Like, the code will just be wrong. Check your type first, bestie, it's not that hard π
π AUTHOR π
MongoDB, Inc
π COPYRIGHT π
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
- 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