| 109 | |
| 110 | template<class T> |
| 111 | void readValues(QIODevice* file, uint numValues, T* to) |
| 112 | { |
| 113 | Q_ASSERT(file); |
| 114 | Q_ASSERT(to); |
| 115 | static_assert(std::is_integral_v<T>); |
| 116 | |
| 117 | file->read(reinterpret_cast<char*>(to), sizeof(T) * numValues); |
| 118 | } |
| 119 | |
| 120 | template<class T> |
| 121 | void readValue(QIODevice* file, T* to) |