bson_json_reader_new_from_fd (3) - Linux Manuals
bson_json_reader_new_from_fd: Creates a new JSON to BSON converter that will be reading from the file-descriptor fd.
Command to display bson_json_reader_new_from_fd
manual in Linux: $ man 3 bson_json_reader_new_from_fd
NAME
bson_json_reader_new_from_fd() - Creates a new JSON to BSON converter that will be reading from the file-descriptor fd.
SYNOPSIS
bson_json_reader_t *
bson_json_reader_new_from_fd (int fd,
bool close_on_destroy);
PARAMETERS
- fd
-
An open file-descriptor.
- close_on_destroy
-
Whether
close(3)
should be called on
fd
when the reader is destroyed.
DESCRIPTION
Creates a new JSON to BSON converter that will be reading from the file-descriptor
fd
\&.
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_from_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_new (3) - Creates a new bson_json_reader_t that can read from an arbitrary data source in a streaming fashion.
- 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().