BSON_ITER_OVERWRITE_INT32(3)
π BSON_ITER_OVERWRITE_INT32 π
okay so welcome to the libbson manual page for bson_iter_overwrite_int32, bestie β this one is short but it has a lil twist, so stay with me π«Ά
β¨ SYNOPSIS β¨
here is the whole signature, exactly as it is, no cap:
void
bson_iter_overwrite_int32 (bson_iter_t *iter, int32_t value);
π PARAMETERS π
iterβ Abson_iter_t.valueβ Aint32_t.
that's it, those are the two, we love a simple cast π
π DESCRIPTION π
The bson_iter_overwrite_int32() function shall overwrite the contents of a BSON_TYPE_INT32 element in place.
β οΈ okay so this is important, bestie: this may only be done when the underlying bson document allows mutation. do not try to be cute with a document that said no to mutation, fr fr.
It is a programming error to call this function when iter is not observing an element of type BSON_TYPE_BOOL.
and yes, the original manual says BSON_TYPE_BOOL right there β exactly like that β and I am not changing the facts, I'm just the messenger ππ
π AUTHOR π
MongoDB, Inc
π COPYRIGHT π
2009-present, MongoDB, Inc.
muah π β this was libbson 2.5.6, dated Oct 09, 2026, and that's the whole page, periodt πβ¨
π¦ 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