BSON_READER_READ_FUNC_T(3) | Libbson | BSON_READER_READ_FUNC_T(3) |
bson_reader_read_func_t - bson_reader_read_func_t
typedef ssize_t (*bson_reader_read_func_t) (void *handle,
void *buf,
size_t count);
A callback function that will be called by bson_reader_t to read the next chunk of data from the underlying opaque file descriptor.
This function is meant to operate similar to the read(2) function as part of libc on UNIX-like systems.
0 for end of stream.
-1 for a failure on read.
A value greater than zero for the number of bytes read into buf.
MongoDB, Inc
2017-present, MongoDB, Inc
February 23, 2019 | 1.14.0 |