extractData static method

DbRefData extractData(
  1. BsonBinary buffer
)

Implementation

static DbRefData extractData(BsonBinary buffer) {
  var bsonCollection = BsonString.fromBuffer(buffer);
  var collection = bsonCollection.data;
  var bsonObjectId = BsonObjectId.fromBuffer(buffer);
  return DbRefData(collection, bsonObjectId, bsonCollection);
}