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

bson_iterator initialization should not require knowledge of the implementation structs

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 0.4
    • Affects Version/s: None
    • Component/s: None
    • None

      New function prototype:

      bson_iterator_init( bson_iterator *i, const bson *bson );

      For pure bson buffers, adding this function:

      bson_iterator_from_buffer( bson_iterator *i, const char *buffer );

      To get the bson* from the cursor:

      const bson *mongo_cursor_bson( mongo_cursor *cursor );

      To get the raw buffers from either cursor or bson objects:

      const char *mongo_cursor_data( mongo_cursor *cursor );
      const char *bson_data( bson *b );

            Assignee:
            kbanker Kyle Banker
            Reporter:
            kbanker Kyle Banker
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: