packValue method

  1. @override
void packValue(
  1. BsonBinary buffer
)
override

Implementation

@override
void packValue(BsonBinary buffer) {
  buffer.writeInt(byteLength());
  for (var i = 0; i < data.length; i++) {
    BsonObject.bsonObjectFrom(data[i]).packElement(i.toString(), buffer);
  }
  buffer.writeByte(0);
}