bson_json_reader_new (3) - Linux Manuals
bson_json_reader_new: Creates a new bson_json_reader_t that can read from an arbitrary data source in a streaming fashion.
Command to display bson_json_reader_new
manual in Linux: $ man 3 bson_json_reader_new
NAME
bson_json_reader_new() - Creates a new bson_json_reader_t that can read from an arbitrary data source in a streaming fashion.
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);
PARAMETERS
- data
-
A user-defined pointer.
- cb
-
A bson_json_reader_cb.
- dcb
-
A bson_json_destroy_cb.
- allow_multiple
-
A bool indicating if more than one document is allowed in the stream.
- buf_size
-
A size_t containing the requested internal buffer size.
DESCRIPTION
Creates a new bson_json_reader_t that can read from an arbitrary data source in a streaming fashion.
RETURNS
A newly allocated bson_json_reader_t that should be freed with bson_json_reader_destroy().
COLOPHON
This page is part of libbson.
Please report any bugs at
https://jira.mongodb.org/browse/CDRIVER.
Pages related to bson_json_reader_new
- bson_json_reader_new_from_fd (3) - Creates a new JSON to BSON converter that will be reading from the file-descriptor fd.
- bson_json_reader_new_from_file (3) - Creates a new bson_json_reader_t using the underlying file found at filename.
- bson_json_reader_destroy (3) - Frees a bson_json_reader_t.
- bson_json_reader_read (3) - Reads the next BSON document from the underlying JSON source.
- bson_json_reader_t (3) - Bulk JSON to BSON conversion
- bson_json_data_reader_ingest (3) - Feed data to a memory based json reader.
- bson_json_data_reader_new (3) - Creates a new streaming JSON reader that will convert JSON documents to BSON.
- bson_append_array (3) - The bson_append_array() function shall append child to bson using the specified key. The type of the field will be an array, but it is the responsibility of the caller to ensure that the keys of child are properly formatted with string keys such as "0", "1", "2" and so forth.
- bson_append_array_begin (3) - The bson_append_array_begin() function shall begin appending an array field to bson. This allows for incrementally building a sub-array. Doing so will generally yield better performance as you will serialize to a single buffer. When done building the sub-array, the caller MUST call bson_append_array_end().