DOKK / manpages / debian 10 / libbson-doc / bson_writer_rollback.3.en
BSON_WRITER_ROLLBACK(3) Libbson BSON_WRITER_ROLLBACK(3)

bson_writer_rollback - bson_writer_rollback()

void
bson_writer_rollback (bson_writer_t *writer);


writer: A bson_writer_t.

Abort the appending of the current bson_t to the memory region managed by writer. This is useful if you detected that you went past a particular memory limit. For example, MongoDB has 48MB message limits.

MongoDB, Inc

2017-present, MongoDB, Inc

February 23, 2019 1.14.0