extractData static method

BsonBinary extractData(
  1. BsonBinary buffer
)

Implementation

static BsonBinary extractData(BsonBinary buffer) {
  _checkBufferCapacity(buffer);
  var content = buffer.byteList.sublist(buffer.offset, buffer.offset + 16);
  var bin = BsonBinary.from(content);
  buffer.offset += 16;
  return bin;
}