[CDRIVER-85] bson_iterator initialization should not require knowledge of the implementation structs Created: 29/Jul/11  Updated: 19/Oct/16  Resolved: 02/Aug/11

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 0.4

Type: Improvement Priority: Major - P3
Reporter: Kyle Banker Assignee: Kyle Banker
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

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 );


Generated at Wed Feb 07 21:08:24 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.