[SERVER-68360] Add helper for interpreting BSONElement value buffer Created: 27/Jul/22  Updated: 29/Oct/23  Resolved: 06/Oct/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.2.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Henrik Edin Assignee: Henrik Edin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-69788 Use the BSONElementValue helper in BS... Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2022-10-17
Participants:

 Description   

It is sometimes needed to be able to parse the value component of a BSONElement memory buffer without having a pointer to the full BSONElement binary containing the type byte and field name.

We should have an abstraction for this use-case that can be re-used so we don't have to implement custom BSON parsing code throughout the code when this use-case comes up.

The main use-case is to be able to abstract code for BSONElement and BSONObj + type.



 Comments   
Comment by Githook User [ 06/Oct/22 ]

Author:

{'name': 'Henrik Edin', 'email': 'henrik.edin@mongodb.com', 'username': 'henrikedin'}

Message: SERVER-68360 Add BSONElementValue helper

Used to parse the value component of BSONElement without requiring a full BSONElement binary
Branch: master
https://github.com/mongodb/mongo/commit/127b55371d254157b27dfecb3244e6ea7f8524de

Generated at Thu Feb 08 06:10:35 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.