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 β€” A bson_reader_t. this is your reader bestie, the main character of the whole operation πŸ‘‘
  • func β€” A bson_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 πŸ’œ


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