carta
bson_new_from_data(3)

bson_new_from_data3

Parameters

•

data: A BSON encoded document buffer.

•

length: The length of data in bytes.

Overview

The bson_new_from_data() function shall create a new bson_t on the heap and copy the contents of data. This may be helpful when working with language bindings but is generally expected to be slower.

Returns

A newly allocated bson_t if successful, otherwise NULL.

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.