Currently, QRCodeData.SaveRawData first stores the data into a byte array, and then calls File.WriteAllBytes. I think it would be better to avoid this allocation altogether, by having GetRawData take a Stream as input and write into it instead of allocating an array.
Currently, QRCodeData.SaveRawData first stores the data into a byte array, and then calls
File.WriteAllBytes. I think it would be better to avoid this allocation altogether, by havingGetRawDatatake aStreamas input and write into it instead of allocating an array.