DOKK / manpages / debian 13 / libbson-doc / bson_writer_begin.3.en
BSON_WRITER_BEGIN(3) libbson BSON_WRITER_BEGIN(3)

bool
bson_writer_begin (bson_writer_t *writer, bson_t **bson);


  • writer: A bson_writer_t.
  • bson: A bson_t.

Begins writing a new document. The caller may use the bson structure to write out a new BSON document. When completed, the caller must call either bson_writer_end() or bson_writer_rollback().

true if there was space in the underlying buffers to begin the document.

MongoDB, Inc

2009-present, MongoDB, Inc.

May 7, 2025 1.30.4