1BSON_WRITER_GET_LENGTH(3) Libbson BSON_WRITER_GET_LENGTH(3)
2
3
4
6 bson_writer_get_length - bson_writer_get_length()
7
9 size_t
10 bson_writer_get_length (bson_writer_t *writer);
11
13 · writer: A bson_writer_t.
14
16 Fetches the current length of the content written by the buffer
17 (including the initial offset). This includes a partly written document
18 currently being written.
19
20 This is useful if you want to check to see if you've passed a given
21 memory boundary that cannot be sent in a packet. See bson_writer_roll‐
22 back() to abort the current document being written.
23
25 The length of the underlying buffer.
26
28 MongoDB, Inc
29
31 2017-present, MongoDB, Inc
32
33
34
35
361.14.0 Feb 22, 2019 BSON_WRITER_GET_LENGTH(3)