bson_iterator initialization should not require knowledge of the implementation structs

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • 0.4
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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:
            Kyle Banker (Inactive)
            Reporter:
            Kyle Banker (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: