1BSON_READER_NEW_FROM_HANDLE(3) libbson BSON_READER_NEW_FROM_HANDLE(3)
2
3
4
6 bson_reader_t *
7 bson_reader_new_from_handle (void *handle,
8 bson_reader_read_func_t rf,
9 bson_reader_destroy_func_t df);
10
12 • handle: A user-provided pointer or NULL.
13
14 • rf: A bson_reader_read_func_t.
15
16 • df: A bson_reader_destroy_func_t.
17
19 This function allows for a pluggable data stream for the reader. This
20 can be used to read from sockets, files, memory, or other arbitrary
21 sources.
22
24 A newly allocated bson_reader_t if successful; otherwise NULL.
25
27 MongoDB, Inc
28
30 2017-present, MongoDB, Inc
31
32
33
34
351.25.1 Nov 08, 2023 BSON_READER_NEW_FROM_HANDLE(3)