extractData static method

DBPointerData extractData(
  1. BsonBinary buffer
)

Implementation

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