Provided by: libbson-doc_1.3.1-1_all 

NAME
Streaming_BSON - None
READING FROM A BSON STREAM
bson_reader_t provides a convenient API to read sequential BSON documents from a file‐descriptor or
memory buffer. The bson_reader_read(3) function will read forward in the underlying stream and returna
bson_t that can be inspected and iterated upon.
See bson_reader_new_from_fd(3) , bson_reader_new_from_file(3) , and bson_reader_new_from_data(3) for more
information.
WRITING A SEQUENCE OF BSON DOCUMENTS
bson_writer_t provides a convenient API to write a sequence of BSON documents to a realloc(3)
bson_writer_begin(3) and bson_writer_end(3) functions will manage the underlying buffer while building
the sequence of documents.
This could also be useful if you want to write to a network packet while serializing the documents from a
higher level language, (but do so just after the packets header).
See bson_writer_new(3) for more information.
COLOPHON
This page is part of libbson. Please report any bugs at https://jira.mongodb.org/browse/CDRIVER.
libbson 2016‐01‐18 STREAMING_BSON(3)