extractData static method
Implementation
static List<dynamic> extractData(BsonBinary buffer) {
var ret = <dynamic>[];
buffer.offset += 4;
var typeByte = buffer.readByte();
while (typeByte != 0) {
// Consume the name (for arrays it is the index)
buffer.readCString();
ret.add(BsonObject.fromTypeByteAndBuffer(typeByte, buffer).value);
typeByte = buffer.readByte();
}
return ret;
}