BSON_READER_SET_READ_FUNC(3)
π bson_reader_set_read_func β a libbson moment β¨
okay so bestie, welcome to BSON_READER_SET_READ_FUNC(3) from the libbson manual π this one is short and sweet and honestly it's giving "tiny function, big responsibility" energy. let's get into it π«Ά
β¨ SYNOPSIS β¨
void
bson_reader_set_read_func (bson_reader_t *reader, bson_reader_read_func_t func);
like, that's the whole vibe. void return, two args, no drama π
πΈ PARAMETERS πΈ
readerβ Abson_reader_t. this is your reader bestie, the main character of the whole operation πfuncβ Abson_reader_read_func_t. the actual function that's gonna do the reading, no cap π₯
π DESCRIPTION π
Sets the function to read more data from the underlying stream in a custom bson_reader_t β¨
that's it, that's the whole thing. you're swapping in your own read function so your custom reader knows how to pull more bytes off the underlying stream. literally it's the "who's driving" of your reader ππ¨
π¦ AUTHOR π¦
MongoDB, Inc β icons, honestly π
β COPYRIGHT β
2009-present, MongoDB, Inc. π«Ά
π and that's the whole page, bestie! go forth and set your read func, iykyk π
libbson version 2.5.6 β dated Oct 09, 2026 π that's the version + date from the footer, mwah, bye! ππ
π¦ 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