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_json_reader_t *

Author

       MongoDB, Inc

Description

       Creates a new bson_json_reader_t that can read from an arbitrary data source in a streaming fashion.

       The allow_multiple parameter is unused.

Parameters

data: A user-defined pointer.

       • cb: A bson_json_reader_cb.

       • dcb: A bson_json_destroy_cb.

       • allow_multiple: Unused.

       • buf_size: A size_t containing the requested internal buffer size.

Returns

       A newly allocated bson_json_reader_t that should be freed with bson_json_reader_destroy().

Synopsis

          bson_json_reader_t *
          bson_json_reader_new (void *data,
                                bson_json_reader_cb cb,
                                bson_json_destroy_cb dcb,
                                bool allow_multiple,
                                size_t buf_size);

See Also