extractData static method

BsonBinaryData extractData(
  1. BsonBinary buffer
)

Implementation

static BsonBinaryData extractData(BsonBinary buffer) {
  var size = buffer.readInt32();
  var locSubType = buffer.readByte();
  var locByteList = Uint8List(size);
  locByteList.setRange(0, size, buffer.byteList, buffer.offset);
  buffer.offset += size;
  return BsonBinaryData(locByteList, locSubType);
}