logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

bson_reader_t *

Author

       MongoDB, Inc

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.

Parameters

handle: A user-provided pointer or NULL.

       • rf: A bson_reader_read_func_t.

       • df: A bson_reader_destroy_func_t.

Returns

       A newly allocated bson_reader_t if successful; otherwise NULL.

Synopsis

          bson_reader_t *
          bson_reader_new_from_handle (void *handle,
                                       bson_reader_read_func_t rf,
                                       bson_reader_destroy_func_t df);

See Also