Skip site navigation (1)Skip section navigation (2)

  
 
  

home | help
BSON_WRITER_GET_LENGTH(3)	     libbson	       BSON_WRITER_GET_LENGTH(3)

SYNOPSIS
	size_t
	bson_writer_get_length (bson_writer_t *writer);

PARAMETERS
     * writer: A bson_writer_t.

DESCRIPTION
     Fetches  the current length of the content written by the buffer (including
     the initial offset). This includes a partly written document currently  be-
     ing 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.

AUTHOR
     MongoDB, Inc

COPYRIGHT
     2009-present, MongoDB, Inc.

1.30.8				  Aug 27, 2026	       BSON_WRITER_GET_LENGTH(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=bson_writer_get_length&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help