bson_writer_rollback() — libbson 1.6.3

- libbson 1.6.3 »
- API Reference »
- bson_writer_t

# bson_writer_rollback()

## Synopsis

    void
    bson_writer_rollback (bson_writer_t *writer);

## Parameters

- `writer`: A bson_writer_t.

## Description

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.

Created using Sphinx 1.5.3, based on Sphinx Readable Theme.