bson_writer_get_length3
Parameters
- •
-
writer: A bson_writer_t.
Overview
Fetches the current length of the content written by the buffer (including the initial offset). This includes a partly written document currently being written.
This is useful if you want to check to see if you've passed a given memory boundary that cannot be sent in a packet. See bson_writer_rollback() to abort the current document being written.
Returns
The length of the underlying buffer.
History
- Debian 13 (Trixie): the text shown here
- Debian 12 (Bookworm)
- Debian 11 (Bullseye)
- Debian 10 (Buster)
- Debian 9 (Stretch)