BSON_ITER_OVERWRITE_TIMESTAMP(3)

πŸ’… BSON_ITER_OVERWRITE_TIMESTAMP(3) β€” libbson manual πŸ’…

You're in the libbson manual, bestie β€” page BSON_ITER_OVERWRITE_TIMESTAMP(3). Let's get into it ✨


✨ SYNOPSIS ✨

void
bson_iter_overwrite_timestamp (bson_iter_t *iter,
                               uint32_t timestamp,
                               uint32_t increment);

πŸŽ€ PARAMETERS πŸŽ€

  • iter β€” A bson_iter_t. This is the iterator doing the observing, iykyk.
  • timestamp β€” A uint32_t.
  • increment β€” A uint32_t.

πŸ’… DESCRIPTION πŸ’…

okay so the bson_iter_overwrite_timestamp() function shall overwrite the contents of a BSON_TYPE_TIMESTAMP element in place. In place, bestie β€” that's the whole vibe.

🚨 This may only be done when the underlying bson document allows mutation. No mutation permission? Then nope, not happening.
😭 It is a programming error to call this function when iter is not observing an element of type BSON_TYPE_TIMESTAMP. Like, an actual programming error β€” not a cute little oopsie.

πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc


2009-present, MongoDB, Inc.


That's the page, bestie 🫢 Source/version: libbson 2.5.6; date: Oct 09, 2026. Byeee πŸ’–

πŸ“¦ where this page comes from