BSON_ITER_VISIT_ALL(3)

✨ BSON_ITER_VISIT_ALL(3) ✨

okay bestie, this one is from libbson and it's literally the convenience-function friend you call when you want the visitor to handle the whole walk. no cap, it's giving callback-vtable main character energy πŸ’…

🌸 SYNOPSIS 🌸

          bool
          bson_iter_visit_all (bson_iter_t *iter,
                               const bson_visitor_t *visitor,
                               void *data);

πŸŽ€ PARAMETERS πŸŽ€

  • iter β€” a bson_iter_t.
  • visitor β€” a bson_visitor_t.
  • data β€” optional data for visitor.

πŸ¦‹ DESCRIPTION πŸ¦‹

A convenience function to iterate all remaining fields of iter using the callback vtable provided by visitor. lowkey iconic: you bring the iterator, the visitor brings the callbacks, and data is there if your visitor needs a little extra something 🫢

⭐ RETURNS ⭐

Returns true if visitation was prematurely stopped by a callback function. Returns false either because all elements were visited or due to corrupt BSON. yeah, those are the two false girlies: finished normally, or corrupt BSON said "not today" πŸ’€

See bson_visitor_t for examples of how to set your own callbacks to provide information about the location of corrupt or unsupported BSON document entries. that's your go-to for making your callbacks spill the location tea ✨

πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc

2009-present, MongoDB, Inc.


that's the whole page, bestie πŸ’– source: libbson, version 2.5.6, dated Oct 09, 2026. manual page BSON_ITER_VISIT_ALL(3) out. mwah πŸ“πŸ’œ

πŸ“¦ where this page comes from