90 out << lots_of_interesting_data;
102 if (magic != 0xA0B0C0D0)
103 return XXX_BAD_FILE_FORMAT;
109 return XXX_BAD_FILE_TOO_OLD;
111 return XXX_BAD_FILE_TOO_NEW;
114 in.setVersion(QDataStream::Qt_3_2);
119 in >> lots_of_interesting_data;
121 in >> data_new_in_XXX_version_1_2;
122 in >> other_interesting_data;
132 in.startTransaction();
137 if (!
in.commitTransaction())
The QDataStream class provides serialization of binary data to a QIODevice.
The QFile class provides an interface for reading from and writing to files.
bool open(OpenMode flags) override
The QString class provides a Unicode character string.
GLboolean GLboolean GLboolean GLboolean a
[7]
QTextStream out(stdout)
[7]