| 132 | |
| 133 | template<class T> |
| 134 | void writeValues(QIODevice* file, uint numValues, const T* from) |
| 135 | { |
| 136 | Q_ASSERT(file); |
| 137 | Q_ASSERT(from); |
| 138 | static_assert(std::is_integral_v<T>); |
| 139 | |
| 140 | file->write(reinterpret_cast<const char*>(from), sizeof(T) * numValues); |
| 141 | } |
| 142 | |
| 143 | template<class T> |
| 144 | void writeValue(QIODevice* file, const T& from) |
no test coverage detected