1BSON_WRITER_GET_LENGTH(3)           libbson          BSON_WRITER_GET_LENGTH(3)
2
3
4

SYNOPSIS

6          size_t
7          bson_writer_get_length (bson_writer_t *writer);
8

PARAMETERS

10writer: A bson_writer_t.
11

DESCRIPTION

13       Fetches  the  current  length of the content written by the buffer (in‐
14       cluding the initial offset). This includes a  partly  written  document
15       currently being written.
16
17       This  is  useful  if  you want to check to see if you've passed a given
18       memory   boundary   that   cannot   be   sent   in   a   packet.    See
19       bson_writer_rollback() to abort the current document being written.
20

RETURNS

22       The length of the underlying buffer.
23

AUTHOR

25       MongoDB, Inc
26
28       2017-present, MongoDB, Inc
29
30
31
32
331.25.1                           Nov 08, 2023        BSON_WRITER_GET_LENGTH(3)
Impressum