1BSON_GET_DATA(3) libbson BSON_GET_DATA(3)
23
4
SYNOPSIS
6const uint8_t *
7bson_get_data (const bson_t *bson);
8
PARAMETERS
10• bson: A bson_t.
11
DESCRIPTION
13The bson_get_data() function shall return the raw buffer of a bson doc‐
14ument. This can be used in conjunction with the len property of a
15bson_t if you want to copy the raw buffer around.
16
RETURNS
18A buffer which should not be modified or freed.
19
AUTHOR
21MongoDB, Inc
22
COPYRIGHT
242017-present, MongoDB, Inc
2526
27
28
29
1.25.1 Nov 08, 2023 BSON_GET_DATA(3)