1BSON_READER_NEW_FROM_HANDLE(3)      libbson     BSON_READER_NEW_FROM_HANDLE(3)
2
3
4

NAME

6       bson_reader_new_from_handle - bson_reader_new_from_handle()
7

SYNOPSIS

9          bson_reader_t *
10          bson_reader_new_from_handle (void *handle,
11                                       bson_reader_read_func_t rf,
12                                       bson_reader_destroy_func_t df);
13

PARAMETERS

15handle: A user-provided pointer or NULL.
16
17rf: A bson_reader_read_func_t.
18
19df: A bson_reader_destroy_func_t.
20

DESCRIPTION

22       This  function  allows for a pluggable data stream for the reader. This
23       can be used to read from sockets, files,  memory,  or  other  arbitrary
24       sources.
25

RETURNS

27       A newly allocated bson_reader_t if successful; otherwise NULL.
28

AUTHOR

30       MongoDB, Inc
31
33       2017-present, MongoDB, Inc
34
35
36
37
381.20.0                           Nov 18, 2021   BSON_READER_NEW_FROM_HANDLE(3)
Impressum