Reference

bson_reserve_buffer(3) on Linux

The text 6f2cf410e75a, as Debian 9 (Stretch) shipped it.

Grow the internal buffer of bson to size and set the document length to size. Useful for eliminating copies when reading BSON bytes from a stream.

bson_reserve_buffer(3) on Linux now