packValue method
Implementation
@override
void packValue(BsonBinary buffer) {
buffer.writeInt(byteLength());
data.forEach((var key, var value) {
BsonObject.bsonObjectFrom(value).packElement(key, buffer);
});
buffer.writeByte(0);
}
@override
void packValue(BsonBinary buffer) {
buffer.writeInt(byteLength());
data.forEach((var key, var value) {
BsonObject.bsonObjectFrom(value).packElement(key, buffer);
});
buffer.writeByte(0);
}