BsonRegexp.fromBuffer constructor
BsonRegexp.fromBuffer(
- 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);
}