bson_writer_get_length(3) on Linux
The text afd30321684e, as Debian 9 (Stretch) shipped it.
Fetches the current length of the content written by the buffer (including the initial offset). This includes a partly written document currently being written.