bson_new_from_data(3)

bson_new_from_data3

Usage

bson_t *
bson_new_from_data (const uint8_t *data, size_t length);

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.

Releases

5 releases since Debian 9 (Stretch); the text changed 4 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13

Author

MongoDB, Inc

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