[CDRIVER-2467] Provide a way to synthesize a bson_iter_t from a known offset Created: 23/Jan/18 Updated: 28/Oct/23 Resolved: 26/Jul/18 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | libbson |
| Affects Version/s: | None |
| Fix Version/s: | 1.13.0 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Andrew Morrow (Inactive) | Assignee: | Kevin Albertson |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | neweng | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Epic Link: | libbson iter api | ||||||||||||||||
| Description |
|
The C++ driver has a need to synthesize a bson_iter_t at a known offset within a document. Currently, it resorts to messing around with the internals of bson_iter_t to accomplish that:
It would be much better for the C++ driver if the C driver offered bson_iter_init_from_data_and_offset, which worked like bson_iter_init_from_data, but also took an offset into the object. Without this, the C++ driver can only correct this misuse of the C driver by either:
Neither of the above seems palatable. |
| Comments |
| Comment by Githook User [ 26/Jul/18 ] |
|
Author: {'username': 'kevinAlbs', 'name': 'Kevin Albertson', 'email': 'kevin.albertson@10gen.com'}Message: |
| Comment by Githook User [ 25/Jul/18 ] |
|
Author: {'name': 'Kevin Albertson', 'email': 'kevin.albertson@10gen.com', 'username': 'kevinAlbs'}Message: |
| Comment by Githook User [ 25/Jul/18 ] |
|
Author: {'username': 'kevinAlbs', 'name': 'Kevin Albertson', 'email': 'kevin.albertson@10gen.com'}Message: |