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

  
 
  

home | help
BSON_INIT_STATIC(3)		     libbson		     BSON_INIT_STATIC(3)

SYNOPSIS
	bool
	bson_init_static (bson_t *b, const uint8_t *data, size_t length);

PARAMETERS
     * b: A bson_t.

     * data: A buffer to initialize with.

     * length: The length of data in bytes.

DESCRIPTION
     The  bson_init_static() function shall initialize a read-only bson_t on the
     stack using the data provided. No copies of  the  data  will  be  made  and
     therefore must remain valid for the lifetime of the bson_t.

     The  resulting  bson_t  has  internal  references and therefore must not be
     copied to avoid dangling pointers in the copy.

RETURNS
     Returns true if bson_t was successfully initialized, otherwise  false.  The
     function can fail if data or length are invalid.

AUTHOR
     MongoDB, Inc

COPYRIGHT
     2009-present, MongoDB, Inc.

1.30.8				  Aug 27, 2026		     BSON_INIT_STATIC(3)

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

home | help