BSON_READER_SET_DESTROY_FUNC(3)

πŸ’… BSON_READER_SET_DESTROY_FUNC(3) πŸ’…

okay so bestie, welcome to the libbson corner of the manual β€” this one's a tiny little function but it's lowkey important, so let's get into it 🫢


✨ SYNOPSIS ✨

void
bson_reader_set_destroy_func (bson_reader_t *reader,
                              bson_reader_destroy_func_t func);

🌸 PARAMETERS 🌸

  • reader β€” a bson_reader_t. yes, literally just the reader you're working with πŸ’–
  • func β€” a bson_reader_destroy_func_t. that's the callback, the little guy that's gonna run later πŸ‘‘

πŸ¦‹ DESCRIPTION πŸ¦‹

so what this does is it sets a callback that gets executed when a reader is destroyed. that's it. that's the whole vibe ✨

🚨 real talk though: this should only be used by implementations that are implementing their own read callbacks. like, if that's not you, this is not your moment, bestie πŸ’€

πŸŽ€ AUTHOR πŸŽ€

MongoDB, Inc β€” icons, honestly πŸ‘‘

2009-present, MongoDB, Inc.


and that's the whole page, no cap 🧚 version 2.5.6, dated Oct 09, 2026 β€” go forth and destroy those readers responsibly, mwah πŸ’‹πŸ’–

πŸ“¦ where this page comes from