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

       Fetches  the  current  length  of  the content written by the buffer (including the initial offset). This
       includes a partly written document currently being written.

       This is useful if you want to check to see if you've passed a given memory boundary that cannot  be  sent
       in a packet. See bson_writer_rollback() to abort the current document being written.

Parameters

       • writer: A bson_writer_t.

Returns

       The length of the underlying buffer.

Synopsis

          size_t
          bson_writer_get_length (bson_writer_t *writer);

See Also