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β abson_reader_t. yes, literally just the reader you're working with πfuncβ abson_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 π
π COPYRIGHT π
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
- 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