extractData static method

BsonRegexpData extractData(
  1. BsonBinary buffer
)

Implementation

static BsonRegexpData extractData(BsonBinary buffer) {
  var pattern = buffer.readCString();
  var options = buffer.readCString();
  return BsonRegexpData(pattern, options);
}