Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-1512

Store C driver iterators in an opaque memory region

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: BSON
    • None

      We should not fiddle with the internal structure of bson_iter_t. However, we have been assured by the C driver team that it is OK to memcpy them. Since we don't want to expose bson_iter_t in the interface to the driver, store it in an opaque memory buffer of the correct size, and hydrate it as needed when communicating with the C driver.

            Assignee:
            kevin.albertson@mongodb.com Kevin Albertson
            Reporter:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: