Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-2064

Add bson_iter_init_from_data function

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 1.7.0
    • libbson
    • None

    Description

      The mongocxx driver would benefit from the ability to directly initialize a bson_iter_t from a data buffer, rather than having to repetitively call bson_init_static merely to call bson_iter_init. As bson_iter_init only uses the passed bson_t to extract a buffer pointer and length, we'd like an alternative initializer for bson_iter_t that takes those directly.

      A PR will follow shortly.

      Attachments

        Issue Links

          Activity

            People

              jesse@mongodb.com A. Jesse Jiryu Davis
              david.golden@mongodb.com David Golden
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: