table of contents
other versions
- bookworm 1.23.1-1
- testing 1.26.0-1
- unstable 1.26.1-1
- experimental 1.26.0-1.1~exp1
BSON_READER_NEW_FROM_HANDLE(3) | libbson | BSON_READER_NEW_FROM_HANDLE(3) |
SYNOPSIS¶
bson_reader_t * bson_reader_new_from_handle (void *handle,
bson_reader_read_func_t rf,
bson_reader_destroy_func_t df);
PARAMETERS¶
- handle: A user-provided pointer or NULL.
- rf: A bson_reader_read_func_t.
- df: A bson_reader_destroy_func_t.
DESCRIPTION¶
This function allows for a pluggable data stream for the reader. This can be used to read from sockets, files, memory, or other arbitrary sources.
RETURNS¶
A newly allocated bson_reader_t if successful; otherwise NULL.
AUTHOR¶
MongoDB, Inc
COPYRIGHT¶
2017-present, MongoDB, Inc
February 25, 2024 | 1.26.0 |