-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
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 );