DOKK / manpages / debian 12 / libbson-doc / bson_get_data.3.en
BSON_GET_DATA(3) libbson BSON_GET_DATA(3)

bson_get_data - bson_get_data()

const uint8_t *
bson_get_data (const bson_t *bson);


bson: A bson_t.

The bson_get_data() function shall return the raw buffer of a bson document. This can be used in conjunction with the len property of a bson_t if you want to copy the raw buffer around.

A buffer which should not be modified or freed.

MongoDB, Inc

2017-present, MongoDB, Inc

October 20, 2022 1.23.1