Commit 13c7a3ff authored by Christian Hergert's avatar Christian Hergert
Browse files

bson: add bson_destroy_with_steal().

This allows, for non-read-only bson_t, to steal the underlying buffer.
In the case of inline buffers, a new buffer is allocated for the result
and returned for the convenience of the caller.

The caller must call bson_free() on the result when they are done with
the data.
parent fc4bd7bb
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment