Add bson_iter_init_from_data function

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Done
    • Priority: Major - P3
    • 1.7.0
    • Affects Version/s: None
    • Component/s: libbson
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            A. Jesse Jiryu Davis
            Reporter:
            David Golden
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: