carta
bson_string_new(3)

bson_string_new3

WARNING:

Deprecated since version 1.29.0.

Parameters

•

str: A string to be copied or NULL.

Overview

Creates a new string builder, which uses power-of-two growth of buffers. Use the various bson_string_append*() functions to append to the string.

WARNING:

The length of the resulting string (including the NULL terminator) MUST NOT exceed UINT32_MAX.

Returns

A newly allocated bson_string_t that should be freed with bson_string_free() when no longer in use.

History

  • Debian 13 (Trixie): the text shown here
  • Debian 12 (Bookworm)
  • Debian 11 (Bullseye)
  • Debian 10 (Buster)
  • Debian 9 (Stretch)

Author

MongoDB, Inc

From libbson-doc 1.30.4-1+deb13u3 in Debian 13 (Trixie). Parsed by carta from the page's man source.