Reference

bson_writer_end(3) on Linux

The text 4030bd2bff0d, as Debian 9 (Stretch) shipped it.

Complete writing of a bson_writer_t to the buffer supplied.

bson_writer_end(3) on Linux now