BSON_READER_READ_FUNC_T(3)
π¦ BSON_READER_READ_FUNC_T(3) π¦
okay so this is the libbson man page for BSON_READER_READ_FUNC_T(3), section 3, and it's a callback type bestie β not a whole program. Lowkey iconic. β¨
π SYNOPSIS π
typedef ssize_t (*bson_reader_read_func_t) (void *handle,
void *buf,
size_t count);
π PARAMETERS π
handleβ the handle to read from, bestie.bufβ the buffer to read into.countβ the number of bytes to read. yes, literally that many π
π DESCRIPTION π
This is a callback function that gets called by bson_reader_t to read the next chunk of data from the underlying opaque file descriptor. It's giving "read the next little snack of bytes" energy. π
This function is meant to operate similar to the read(2) function that's part of libc on UNIX-like systems. no cap, that's the whole vibe. π
β¨ RETURNS β¨
0for end of stream. π-1for a failure on read. π- A value greater than zero for the number of bytes read into
buf. π₯
π AUTHOR π
MongoDB, Inc β periodt. π
π COPYRIGHT π
2009-present, MongoDB, Inc. β iconic legal text, no notes. π«Ά
π that's the whole page! source/version: libbson 2.5.6, date: Oct 09, 2026. bye bestie, go read some bytes and slay π
β¨
π¦ 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