DOKK / manpages / debian 12 / libbson-doc / bson_reader_new_from_data.3.en
BSON_READER_NEW_FROM_DATA(3) libbson BSON_READER_NEW_FROM_DATA(3)

bson_reader_new_from_data - bson_reader_new_from_data()

bson_reader_t *
bson_reader_new_from_data (const uint8_t *data, size_t length);


  • data: A uint8_t.
  • length: A size_t.

The bson_reader_new_from_data() function shall create a new bson_reader_t using the buffer supplied. data is not copied and MUST be valid for the lifetime of the resulting bson_reader_t.

A newly allocated bson_reader_t.

MongoDB, Inc

2017-present, MongoDB, Inc

October 20, 2022 1.23.1