Provided by: libbson-doc_2.2.1-1_all bug

SYNOPSIS

          const uint8_t *
          bson_get_data (const bson_t *bson);

PARAMETERS

bson: A bson_t <>.

DESCRIPTION

       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.

RETURNS

       A buffer which should not be modified or freed.

Author

       MongoDB, Inc

Copyright

       2009-present, MongoDB, Inc.

2.2.1                                             Dec 11, 2025                                  BSON_GET_DATA(3)