1BSON_READER_READ_FUNC_T(3) libbson BSON_READER_READ_FUNC_T(3)
2
3
4
6 bson_reader_read_func_t - bson_reader_read_func_t
7
9 typedef ssize_t (*bson_reader_read_func_t) (void *handle,
10 void *buf,
11 size_t count);
12
14 · handle: The handle to read from.
15
16 · buf: The buffer to read into.
17
18 · count: The number of bytes to read.
19
21 A callback function that will be called by bson_reader_t to read the
22 next chunk of data from the underlying opaque file descriptor.
23
24 This function is meant to operate similar to the read(2) function as
25 part of libc on UNIX-like systems.
26
28 0 for end of stream.
29
30 -1 for a failure on read.
31
32 A value greater than zero for the number of bytes read into buf.
33
35 MongoDB, Inc
36
38 2017-present, MongoDB, Inc
39
40
41
42
431.16.2 Feb 25, 2020 BSON_READER_READ_FUNC_T(3)