BsonRegexp.fromBuffer constructor

BsonRegexp.fromBuffer(
  1. BsonBinary buffer
)

Implementation

BsonRegexp.fromBuffer(BsonBinary buffer) {
  var data = extractData(buffer);
  pattern = data.pattern;
  options = data.options;
  bsonPattern = BsonCString(pattern, false);
  bsonOptions = BsonCString(options, false);
}