diff options
Diffstat (limited to 'src/mongo/bson')
-rw-r--r-- | src/mongo/bson/bsonobjbuilder.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mongo/bson/bsonobjbuilder.h b/src/mongo/bson/bsonobjbuilder.h index 38dae8234fa..c8aed97e15b 100644 --- a/src/mongo/bson/bsonobjbuilder.h +++ b/src/mongo/bson/bsonobjbuilder.h @@ -172,6 +172,14 @@ public: } } + /** + * The start offset of the object being built by this builder within its buffer. + * Needed for the object-resuming constructor. + */ + std::size_t offset() const { + return _offset; + } + /** add all the fields from the object specified to this object */ BSONObjBuilder& appendElements(const BSONObj& x); |