Risk-Aware Code Review: Auto Approve Low-Risk Changes
LiveReview LiveReview LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt GitHub Install Now

We'd appreciate a star

Author

       MongoDB, Inc

Description

       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.

Parameters

       • data: A BSON encoded document buffer.

       • length: The length of data in bytes.

Returns

       A newly allocated bson_t if successful, otherwise NULL.

Synopsis

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

See Also